|
Project JXTA | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.jxta.impl.endpoint.router.Destinations.Wisdom
class Destinations.Wisdom
This class stores knowlege about one particular destination. It does not provide any synchronization. This is provided by the Destinations class.
Field Summary | |
---|---|
(package private) static long |
expiration
How long we consider that a past outgoingMessenger is an indication that one is possible in the future. |
Constructor Summary | |
---|---|
Destinations.Wisdom(Messenger messenger,
boolean incoming)
|
Method Summary | |
---|---|
(package private) boolean |
addIncomingMessenger(Messenger m)
|
(package private) boolean |
addOutgoingMessenger(Messenger m)
|
(package private) Messenger |
getCurrentMessenger()
Returns a channel for this destination if one is there or can be obtained readily and works. |
(package private) boolean |
isCurrentlyReachable()
We think the destination is reachable somehow. |
(package private) boolean |
isExpired()
|
(package private) boolean |
isNormallyReachable()
|
(package private) boolean |
isWelcomeNeeded()
Tells whether a welcome message is needed. |
(package private) void |
noOutgoingMessenger()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
static final long expiration
Constructor Detail |
---|
Destinations.Wisdom(Messenger messenger, boolean incoming)
channel
- The messenger to cache information about.incoming
- If true, this is an incoming messenger, which means that
if the channel is lost it cannot be re-obtained. It must strongly referenced until it
closes for disuse, or breaks.Method Detail |
---|
boolean isWelcomeNeeded()
boolean addIncomingMessenger(Messenger m)
boolean addOutgoingMessenger(Messenger m)
void noOutgoingMessenger()
Messenger getCurrentMessenger()
boolean isNormallyReachable()
boolean isCurrentlyReachable()
boolean isExpired()
|
JXTA J2SE | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |