|
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
final class Destinations.Wisdom
Stores knowledge 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()
Reports 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)
messenger
- 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()
true
if this is the first time this method is invoked.boolean addIncomingMessenger(Messenger m)
boolean addOutgoingMessenger(Messenger m)
void noOutgoingMessenger()
Messenger getCurrentMessenger()
boolean isNormallyReachable()
boolean isCurrentlyReachable()
boolean isExpired()
|
JXSE | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |