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 protected
LocalLocation(String userId, ServerSession session)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object obj)
int
hashCode()
void
receive(String toUser, String toChannel, Object data)
void
removed(ServerSession session, boolean timeout)
Callback invoked when the session is removed.void
send(String toUser, String toChannel, Object data)
String
toString()
-
-
-
Constructor Detail
-
LocalLocation
protected LocalLocation(String userId, ServerSession session)
-
-
Method Detail
-
send
public void send(String toUser, String toChannel, Object data)
- Specified by:
send
in interfaceSeti.Location
-
receive
public void receive(String toUser, String toChannel, Object data)
- Specified by:
receive
in interfaceSeti.Location
-
removed
public void removed(ServerSession session, boolean timeout)
Description copied from interface:ServerSession.RemoveListener
Callback invoked when the session is removed.
- Specified by:
removed
in interfaceServerSession.RemoveListener
- Parameters:
session
- the removed sessiontimeout
- whether the session has been removed because of a timeout
-
equals
public boolean equals(Object obj)
- Specified by:
equals
in interfaceSeti.Location
- Overrides:
equals
in classObject
-
hashCode
public int hashCode()
- Specified by:
hashCode
in interfaceSeti.Location
- Overrides:
hashCode
in classObject
-
-