Package org.cometd.oort
Class Seti.LocalLocation
java.lang.Object
org.cometd.oort.Seti.LocalLocation
- All Implemented Interfaces:
EventListener,Bayeux.BayeuxListener,ServerSession.RemoveListener,ServerSession.ServerSessionListener,Seti.Location
- Enclosing class:
- Seti
protected class Seti.LocalLocation extends Object implements Seti.Location, ServerSession.RemoveListener
A Location that represent a user connected to a local comet.
-
Constructor Summary
Constructors Modifier Constructor Description protectedLocalLocation(String userId, ServerSession session) -
Method Summary
Modifier and Type Method Description booleanequals(Object obj)inthashCode()voidreceive(String toUser, String toChannel, Object data)voidremoved(ServerSession session, boolean timeout)Callback invoked when the session is removed.voidsend(String toUser, String toChannel, Object data)StringtoString()
-
Constructor Details
-
Method Details
-
send
- Specified by:
sendin interfaceSeti.Location
-
receive
- Specified by:
receivein interfaceSeti.Location
-
removed
Description copied from interface:ServerSession.RemoveListenerCallback invoked when the session is removed.
- Specified by:
removedin interfaceServerSession.RemoveListener- Parameters:
session- the removed sessiontimeout- whether the session has been removed because of a timeout
-
equals
- Specified by:
equalsin interfaceSeti.Location- Overrides:
equalsin classObject
-
hashCode
public int hashCode()- Specified by:
hashCodein interfaceSeti.Location- Overrides:
hashCodein classObject
-
toString
-