protected class Seti.LocalLocation extends Object implements Seti.Location, ServerSession.RemovedListener
A Location that represent a user connected to a local comet.
Modifier | Constructor and Description |
---|---|
protected |
LocalLocation(String userId,
ServerSession session) |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj) |
int |
hashCode() |
void |
receive(String toUser,
String toChannel,
Object data) |
void |
removed(ServerSession session,
ServerMessage message,
boolean timeout)
Callback invoked when the session is removed.
|
void |
send(String toUser,
String toChannel,
Object data) |
String |
toString() |
protected LocalLocation(String userId, ServerSession session)
public void send(String toUser, String toChannel, Object data)
send
in interface Seti.Location
public void receive(String toUser, String toChannel, Object data)
receive
in interface Seti.Location
public void removed(ServerSession session, ServerMessage message, boolean timeout)
ServerSession.RemovedListener
Callback invoked when the session is removed.
removed
in interface ServerSession.RemovedListener
session
- the removed sessionmessage
- the message that caused the session removal, or nulltimeout
- whether the session has been removed due to a timeoutpublic boolean equals(Object obj)
equals
in interface Seti.Location
equals
in class Object
public int hashCode()
hashCode
in interface Seti.Location
hashCode
in class Object
Copyright © 2008–2024 The CometD Project. All rights reserved.