|
Project JXTA | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectnet.jxta.impl.endpoint.relay.RelayServerClient
This class abstracts a client of the Relay Server
| Nested Class Summary | |
protected static class |
RelayServerClient.RelayMessenger
|
| Constructor Summary | |
protected |
RelayServerClient(RelayServer server,
String clientPeerId,
long leaseLength,
long stallTimeout,
int clientQueueSize)
|
| Method Summary | |
boolean |
addMessenger(Messenger newMessenger)
|
void |
closeClient()
|
protected void |
finalize()
|
(package private) void |
flushQueue()
remove all queued messages. |
protected EndpointAddress |
getClientAddress()
|
long |
getLeaseRemaining()
|
protected Messenger |
getMessenger(EndpointAddress srcAddr,
EndpointAddress destAddr,
boolean outOfBand)
|
protected int |
getQueueSize()
|
boolean |
isExpired()
|
boolean |
renewLease()
|
void |
run()
Send all of the queued messages to the client. |
String |
toString()
|
| Methods inherited from class java.lang.Object |
clone, equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
protected RelayServerClient(RelayServer server,
String clientPeerId,
long leaseLength,
long stallTimeout,
int clientQueueSize)
| Method Detail |
protected void finalize()
public void run()
run in interface Runnablepublic String toString()
protected int getQueueSize()
public long getLeaseRemaining()
public void closeClient()
void flushQueue()
public boolean addMessenger(Messenger newMessenger)
public boolean isExpired()
public boolean renewLease()
protected EndpointAddress getClientAddress()
protected Messenger getMessenger(EndpointAddress srcAddr,
EndpointAddress destAddr,
boolean outOfBand)
|
JXTA J2SE | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||