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 protected
LocalLocation(java.lang.String userId, ServerSession session)
-
Method Summary
Modifier and Type Method Description boolean
equals(java.lang.Object obj)
int
hashCode()
void
receive(java.lang.String toUser, java.lang.String toChannel, java.lang.Object data)
void
removed(ServerSession session, ServerMessage message, boolean timeout)
Callback invoked when the session is removed.void
send(java.lang.String toUser, java.lang.String toChannel, java.lang.Object data)
java.lang.String
toString()
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Constructor Details
-
LocalLocation
-
-
Method Details
-
send
public void send(java.lang.String toUser, java.lang.String toChannel, java.lang.Object data)- Specified by:
send
in interfaceSeti.Location
-
receive
public void receive(java.lang.String toUser, java.lang.String toChannel, java.lang.Object data)- Specified by:
receive
in interfaceSeti.Location
-
removed
Description copied from interface:ServerSession.RemovedListener
Callback invoked when the session is removed.
- Specified by:
removed
in 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:
equals
in interfaceSeti.Location
- Overrides:
equals
in classjava.lang.Object
-
hashCode
public int hashCode()- Specified by:
hashCode
in interfaceSeti.Location
- Overrides:
hashCode
in classjava.lang.Object
-
toString
public java.lang.String toString()- Overrides:
toString
in classjava.lang.Object
-