public class ServiceSubscription
extends java.lang.Object
endpoint reference to which events are to
be delivered, the actions the subscription addresses, its expiration time and the optional endpoint to which the server-initiated end
of the subscription should be announced.| Modifier and Type | Field and Description |
|---|---|
static long |
MAX_EXPIRATION_DURATION |
| Constructor and Description |
|---|
ServiceSubscription(ConnectionInfo connectionInfo,
EprInfoSet notifyToSet,
EprInfoSet endToSet,
OutgoingDiscoveryInfosProvider provider,
java.lang.String comManId) |
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getCommunicationManagerId()
Returns the ID of the protocol to communicate over with the client (aka.
|
ConnectionInfo |
getConnectionInfo() |
EprInfo |
getEndTo()
Returns the (optional) EprInfo to which a server-side cancellation of the subscription should
be announced.
|
long |
getExpirationTime()
Returns the expiration time of this subscription in milliseconds from the epoch.
|
Iterator |
getFilterActions()
Returns a read-only iterator over the set of
action URIs to which this subscription
refers. |
int |
getHostedBlockVersionForEndTo() |
int |
getHostedBlockVersionForNotifyTo() |
XAddressInfo |
getNextXAddressInfoAfterFailureForEndTo(URI transportAddress,
int syncHostedBlockVersion) |
XAddressInfo |
getNextXAddressInfoAfterFailureForNotifyTo(URI transportAddress,
int syncHostedBlockVersion) |
EprInfo |
getNotifyTo()
Returns the EprInfo to which notifications matching this subscription shall be sent.
|
EndpointReference |
getSubscriptionManager()
Returns the EPR of the subscription manager governing the state of this service subscription.
|
public static final long MAX_EXPIRATION_DURATION
public ServiceSubscription(ConnectionInfo connectionInfo, EprInfoSet notifyToSet, EprInfoSet endToSet, OutgoingDiscoveryInfosProvider provider, java.lang.String comManId)
public long getExpirationTime()
public EprInfo getNotifyTo()
Be aware that the xAddress of the returned EprInfo may be null if
the endpoint reference is not a transport address
EprInfo to which to send notificationspublic EprInfo getEndTo()
Be aware that the xAddress of the returned EprInfo may be null if
the endpoint reference is not a transport address
EprInfo to which to send a subscription-end announcementpublic java.lang.String getCommunicationManagerId()
notify-to or end-to addresses.public Iterator getFilterActions()
action URIs to which this subscription
refers. This method never returns null, it will instead return an empty iterator
in the case where no filter actions are available.URI instances representing the actions to which this subscription referspublic EndpointReference getSubscriptionManager()
public ConnectionInfo getConnectionInfo()
public int getHostedBlockVersionForNotifyTo()
public int getHostedBlockVersionForEndTo()
public XAddressInfo getNextXAddressInfoAfterFailureForNotifyTo(URI transportAddress, int syncHostedBlockVersion) throws CommunicationException
CommunicationExceptionpublic XAddressInfo getNextXAddressInfoAfterFailureForEndTo(URI transportAddress, int syncHostedBlockVersion) throws CommunicationException
CommunicationException