|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.threerings.nexus.net.Connection
public abstract class Connection
Manages a connection to a particular server.
Field Summary | |
---|---|
react.Signal<Throwable> |
onClose
A signal emitted when this connection is closed. |
Method Summary | ||
---|---|---|
abstract void |
close()
Closes this connection in an orderly fashion. |
|
String |
getHost()
Returns the name of the host that is associated with this event sink. |
|
void |
onDispatchEvent(Downstream.DispatchEvent msg)
Dispatches an event originating on the server. |
|
void |
onObjectCleared(Downstream.ObjectCleared msg)
Dispatches an object cleared notification. |
|
void |
onServiceFailure(Downstream.ServiceFailure msg)
Dispatches a failed service notification from the server. |
|
void |
onServiceResponse(Downstream.ServiceResponse msg)
Dispatches a service response from the server. |
|
void |
onSubscribe(Downstream.Subscribe msg)
Dispatches a successful subscribe response. |
|
void |
onSubscribeFailure(Downstream.SubscribeFailure msg)
Dispatches a failed subscribe response. |
|
void |
postCall(NexusObject source,
short attrIndex,
short methodId,
Object[] args)
Posts a service request originating from the specified object. |
|
void |
postEvent(NexusObject source,
NexusEvent event)
Posts an event originating from the specified object, to be dispatched to local and distributed listeners. |
|
|
subscribe(Address<T> addr,
Callback<T> cb)
Requests to subscribe to the specified Nexus object. |
|
void |
unsubscribe(NexusObject object)
Requests to unsubscribe from the specified Nexus object. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public final react.Signal<Throwable> onClose
Method Detail |
---|
public <T extends NexusObject> void subscribe(Address<T> addr, Callback<T> cb)
public void unsubscribe(NexusObject object)
public abstract void close()
public String getHost()
EventSink
getHost
in interface EventSink
public void postEvent(NexusObject source, NexusEvent event)
EventSink
postEvent
in interface EventSink
public void postCall(NexusObject source, short attrIndex, short methodId, Object[] args)
EventSink
postCall
in interface EventSink
public void onSubscribe(Downstream.Subscribe msg)
Downstream.Handler
onSubscribe
in interface Downstream.Handler
public void onSubscribeFailure(Downstream.SubscribeFailure msg)
Downstream.Handler
onSubscribeFailure
in interface Downstream.Handler
public void onDispatchEvent(Downstream.DispatchEvent msg)
Downstream.Handler
onDispatchEvent
in interface Downstream.Handler
public void onServiceResponse(Downstream.ServiceResponse msg)
Downstream.Handler
onServiceResponse
in interface Downstream.Handler
public void onServiceFailure(Downstream.ServiceFailure msg)
Downstream.Handler
onServiceFailure
in interface Downstream.Handler
public void onObjectCleared(Downstream.ObjectCleared msg)
Downstream.Handler
onObjectCleared
in interface Downstream.Handler
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |