| java.lang.Object org.cougaar.core.blackboard.Subscription org.cougaar.core.blackboard.TimestampSubscription
TimestampSubscription | public class TimestampSubscription extends Subscription (Code) | | A
Subscription that tracks
UniqueObject publishAdd
and most recent publishChange timestamps.
These timestamps are not persisted, and upon rehydration the
creation time of the objects will be the agent restart time.
See Also: Subscriber See Also: required system property that must be enabled See Also: TimestampSubscription.getTimestampEntry See Also: access to the (UID, TimestampEntry) timestamp data |
TimestampSubscription | public TimestampSubscription(UnaryPredicate p)(Code) | | Equivalent tonew TimestampSubscription(p, true) .
|
TimestampSubscription | public TimestampSubscription(UnaryPredicate p, boolean isShared)(Code) | | Parameters: p - the predicate should only accept UniqueObjects; all non-UniqueObjects and UniqueObjects with null UIDs are ignored. Parameters: isShared - if true, removals are done immediately,otherwise they are done at the end of the plugin'stransaction. |
getTimestampEntry | public TimestampEntry getTimestampEntry(UID uid)(Code) | | Get the TimestampEntry for the local blackboard object with the
given UID.
The object must match this subscription's predicate.
The timestamps are measured in milliseconds, and matches the
transaction close times of the subscriber that performed
the "publishAdd()" or "publishChange()".
This method is thread-safe to allow multiple clients to
access the underlying (UID, TimestampEntry) map. The map is
also updated during the subscriber's transaction.
Multiple calls to "getTimestampEntry()", even within the same
subscriber transaction, may return different results.
the TimestampEntry, or null if not known. |
privateAdd | protected void privateAdd(Object o, boolean isVisible)(Code) | | |
privateChange | protected void privateChange(Object o, List changes, boolean isVisible)(Code) | | |
privateRemove | protected void privateRemove(Object o, boolean isVisible)(Code) | | |
resetChanges | protected void resetChanges()(Code) | | |
|
|