public class SharedData extends Object
Shared data provides:
Please see the documentation for more information.
NOTE: This class has been automatically generated from theoriginal
non RX-ified interface using Vert.x codegen.Constructor and Description |
---|
SharedData(SharedData delegate) |
Modifier and Type | Method and Description |
---|---|
<K,V> void |
getClusterWideMap(String name,
Handler<AsyncResult<AsyncMap<K,V>>> resultHandler)
Get the cluster wide map with the specified name.
|
<K,V> rx.Observable<AsyncMap<K,V>> |
getClusterWideMapObservable(String name)
Get the cluster wide map with the specified name.
|
void |
getCounter(String name,
Handler<AsyncResult<Counter>> resultHandler)
Get a cluster wide counter.
|
rx.Observable<Counter> |
getCounterObservable(String name)
Get a cluster wide counter.
|
Object |
getDelegate() |
<K,V> LocalMap<K,V> |
getLocalMap(String name)
Return a
LocalMap with the specific name . |
void |
getLock(String name,
Handler<AsyncResult<Lock>> resultHandler)
Get a cluster wide lock with the specified name.
|
rx.Observable<Lock> |
getLockObservable(String name)
Get a cluster wide lock with the specified name.
|
void |
getLockWithTimeout(String name,
long timeout,
Handler<AsyncResult<Lock>> resultHandler)
Like
SharedData but specifying a timeout. |
rx.Observable<Lock> |
getLockWithTimeoutObservable(String name,
long timeout)
Like
SharedData but specifying a timeout. |
static SharedData |
newInstance(SharedData arg) |
public SharedData(SharedData delegate)
public Object getDelegate()
public <K,V> void getClusterWideMap(String name, Handler<AsyncResult<AsyncMap<K,V>>> resultHandler)
name
- the name of the mapresultHandler
- the map will be returned asynchronously in this handlerpublic <K,V> rx.Observable<AsyncMap<K,V>> getClusterWideMapObservable(String name)
name
- the name of the mappublic void getLock(String name, Handler<AsyncResult<Lock>> resultHandler)
name
- the name of the lockresultHandler
- the handlerpublic rx.Observable<Lock> getLockObservable(String name)
name
- the name of the lockpublic void getLockWithTimeout(String name, long timeout, Handler<AsyncResult<Lock>> resultHandler)
SharedData
but specifying a timeout. If the lock is not obtained within the timeout
a failure will be sent to the handlername
- the name of the locktimeout
- the timeout in msresultHandler
- the handlerpublic rx.Observable<Lock> getLockWithTimeoutObservable(String name, long timeout)
SharedData
but specifying a timeout. If the lock is not obtained within the timeout
a failure will be sent to the handlername
- the name of the locktimeout
- the timeout in mspublic void getCounter(String name, Handler<AsyncResult<Counter>> resultHandler)
name
- the name of the counter.resultHandler
- the handlerpublic rx.Observable<Counter> getCounterObservable(String name)
name
- the name of the counter.public <K,V> LocalMap<K,V> getLocalMap(String name)
LocalMap
with the specific name
.name
- the name of the mappublic static SharedData newInstance(SharedData arg)
Copyright © 2015. All Rights Reserved.