public interface ObjectConnection extends Addressable, AsyncStoppable
| Modifier and Type | Method and Description |
|---|---|
void |
addIncoming(Class<?> type,
Dispatch<? super MethodInvocation> dispatch)
Registers a handler for incoming messages on the given type.
|
<T> void |
addIncoming(Class<T> type,
T instance)
Registers a handler for incoming messages on the given type.
|
<T> T |
addOutgoing(Class<T> type)
Creates a transmitter for outgoing messages on the given type.
|
void |
requestStop()
Commences a graceful stop of this connection.
|
void |
stop()
Performs a graceful stop of this connection.
|
getLocalAddress, getRemoteAddress<T> T addOutgoing(Class<T> type)
type - The type<T> void addIncoming(Class<T> type, T instance)
type - The type.instance - The handler instance. Incoming messages on the given type are delivered to this handler.void addIncoming(Class<?> type, Dispatch<? super MethodInvocation> dispatch)
type - The type.dispatch - The handler instance. Incoming messages on the given type are delivered to this handler.void requestStop()
requestStop in interface AsyncStoppableCopyright © 2013. All rights reserved