public class ServiceReference extends Object
ServiceReference managing the binding with the chosen
service provider.
The reference lets the consumer:
* access the service (via a proxy or a client) with the get() method
* release the reference - so the binding between the consumer and the provider is removed
original non RX-ified interface using Vert.x codegen.| Constructor and Description |
|---|
ServiceReference(ServiceReference delegate) |
| Modifier and Type | Method and Description |
|---|---|
<T> T |
cached()
Gets the service object if already retrieved.
|
<T> T |
get()
Gets the object to access the service.
|
Object |
getDelegate() |
static ServiceReference |
newInstance(ServiceReference arg) |
Record |
record() |
void |
release()
Releases the reference.
|
public ServiceReference(ServiceReference delegate)
public Object getDelegate()
public Record record()
public <T> T get()
public <T> T cached()
null if not yet retrievedpublic void release()
public static ServiceReference newInstance(ServiceReference arg)
Copyright © 2016. All rights reserved.