Package org.cometd.oort
Class Seti.LocalLocation
- java.lang.Object
-
- org.cometd.oort.Seti.LocalLocation
-
- All Implemented Interfaces:
java.util.EventListener,Bayeux.BayeuxListener,ServerSession.RemovedListener,ServerSession.ServerSessionListener,Seti.Location
- Enclosing class:
- Seti
protected class Seti.LocalLocation extends java.lang.Object implements Seti.Location, ServerSession.RemovedListener
A Location that represent a user connected to a local comet.
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedLocalLocation(java.lang.String userId, ServerSession session)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(java.lang.Object obj)inthashCode()voidreceive(java.lang.String toUser, java.lang.String toChannel, java.lang.Object data)voidremoved(ServerSession session, ServerMessage message, boolean timeout)Callback invoked when the session is removed.voidsend(java.lang.String toUser, java.lang.String toChannel, java.lang.Object data)java.lang.StringtoString()
-
-
-
Constructor Detail
-
LocalLocation
protected LocalLocation(java.lang.String userId, ServerSession session)
-
-
Method Detail
-
send
public void send(java.lang.String toUser, java.lang.String toChannel, java.lang.Object data)- Specified by:
sendin interfaceSeti.Location
-
receive
public void receive(java.lang.String toUser, java.lang.String toChannel, java.lang.Object data)- Specified by:
receivein interfaceSeti.Location
-
removed
public void removed(ServerSession session, ServerMessage message, boolean timeout)
Description copied from interface:ServerSession.RemovedListenerCallback invoked when the session is removed.
- Specified by:
removedin interfaceServerSession.RemovedListener- Parameters:
session- the removed sessionmessage- the message that caused the session removal, or nulltimeout- whether the session has been removed due to a timeout
-
equals
public boolean equals(java.lang.Object obj)
- Specified by:
equalsin interfaceSeti.Location- Overrides:
equalsin classjava.lang.Object
-
hashCode
public int hashCode()
- Specified by:
hashCodein interfaceSeti.Location- Overrides:
hashCodein classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-