public interface RoutingTable
| Modifier and Type | Method and Description |
|---|---|
void |
apply(AddressOperation addressOperation)
Apply the specified operation to all addresses currently held in the routing table.
|
boolean |
containsKey(String participantId) |
Address |
get(String participantId) |
Address |
get(String participantId,
String gbid) |
long |
getExpiryDateMs(String participantId)
Query the expiry date of a routing entry for a participant id.
|
boolean |
getIsGloballyVisible(String participantId)
Query the routing table for the status of isGloballyVisible parameter
|
boolean |
getIsSticky(String participantId)
Query the sticky-flag of a routing entry for a participant id.
|
void |
incrementReferenceCount(String participantId)
Increment the reference count of the entry with the given participantId.
|
void |
purge()
Purge all expired routing entries from the table
|
void |
put(String participantId,
Address address,
boolean isGloballyVisible,
long expiryDateMs)
Overload of put method with isSticky set to false.
|
void |
put(String participantId,
Address address,
boolean isGloballyVisible,
long expiryDateMs,
boolean isSticky)
Adds a new routing entry.
|
void |
remove(String participantId) |
void |
setGcdParticipantId(String gcdParticipantId)
Sets the participantId of the Global Capabilities Directory (GCD) before adding it to the routing table
|
Address get(String participantId)
participantId - participantId for which an Address will be returned from the
routing tableget(String, String)Address get(String participantId, String gbid)
participantId - participantId for which an Address will be returned from the
routing tablegbid - name of the backend (evaluated for gcdParticipantId only):
selects the backend specific address of GCD (if participantId is the participantId of the GCD)ConfigurableMessagingSettings.PROPERTY_GBIDSvoid setGcdParticipantId(String gcdParticipantId)
gcdParticipantId - the participantId of the GCDvoid put(String participantId, Address address, boolean isGloballyVisible, long expiryDateMs, boolean isSticky)
participantId - participant id for which a routing entry shall be createdaddress - Address which shall be associated with the participant idisGloballyVisible - States whether the endpoint is globally visible or notexpiryDateMs - Expiry date of the routing entry in millisecondsisSticky - If set to true, the routing entry never expires and cannot be replacedvoid put(String participantId, Address address, boolean isGloballyVisible, long expiryDateMs)
participantId - participant id for which a routing entry shall be createdaddress - Address which shall be associated with the participant idisGloballyVisible - States whether the endpoint is globally visible or notexpiryDateMs - Expiry date of the routing entry in millisecondsboolean containsKey(String participantId)
boolean getIsGloballyVisible(String participantId)
participantId - participantId for which the visibility shall be looked upJoynrRuntimeException - if no entry exists for the given participantIdlong getExpiryDateMs(String participantId)
participantId - participantId for which the expiryDate shall be looked upboolean getIsSticky(String participantId)
participantId - participantId for which the sticky-flag shall be looked upvoid remove(String participantId)
void apply(AddressOperation addressOperation)
addressOperation - the address operation to perform.void purge()
void incrementReferenceCount(String participantId)
participantId - Copyright © 2021. All rights reserved.