=cdd #17778 Convert samples to java

This commit is contained in:
Patrik Nordwall 2015-07-01 09:46:58 +02:00
parent 7bfc56f3f0
commit 94a61c7eb2
32 changed files with 2220 additions and 67 deletions

View file

@ -217,6 +217,13 @@ object Replicator {
* Java API: `Get` value from local `Replicator`, i.e. `ReadLocal` consistency.
*/
def this(key: Key[A], consistency: ReadConsistency) = this(key, consistency, None)
/**
* Java API: `Get` value from local `Replicator`, i.e. `ReadLocal` consistency.
*/
def this(key: Key[A], consistency: ReadConsistency, request: Optional[Any]) =
this(key, consistency, Option(request.orElse(null)))
}
sealed abstract class GetResponse[A <: ReplicatedData] extends NoSerializationVerificationNeeded {
def key: Key[A]