public class DefaultDestinationManager extends Object implements DestinationManager
| Constructor and Description |
|---|
DefaultDestinationManager(Session session) |
| Modifier and Type | Method and Description |
|---|---|
int |
getDestinationsNum()
Returns the total number of Destinations
already registered with this DestinationManager
|
Destination |
getLastDestination()
Returns the last successful destination may return null if no destinations
were successfully added previously
|
List<Destination> |
getStoredDestinations()
Return the list of destinations which the session believe it has successfully registered
|
void |
handleDestinationAdd()
Handles the case when we have a successful destination add
|
void |
handlePartialDestinationsAdd(List<Destination> destinations,
JCSMPErrorResponseException opEx)
Handles the case when we hava a partially successful or failed destination add operation
|
void |
handlePartialDestinationsRemove(List<Destination> destinations,
JCSMPErrorResponseException opEx)
Handles the case when we hava a partially successful or failed destination remove operation
|
void |
handleRemoveDestination()
Hanldes the case when we have successful destination remove
|
void |
removeAllDestinations()
removes all destinations, already registered with this DestinationManager
|
void |
removeDestinations(List<Destination> destinations)
Removes destinations after a fully successful remove
operation
|
void |
storeDestinations(List<Destination> destinations)
Stores destination after a fully successul add operation
|
public DefaultDestinationManager(Session session)
public int getDestinationsNum()
DestinationManagergetDestinationsNum in interface DestinationManagerpublic Destination getLastDestination()
DestinationManagergetLastDestination in interface DestinationManagerpublic List<Destination> getStoredDestinations()
DestinationManagergetStoredDestinations in interface DestinationManagerpublic void handleDestinationAdd()
DestinationManagerhandleDestinationAdd in interface DestinationManagerpublic void handlePartialDestinationsAdd(List<Destination> destinations, JCSMPErrorResponseException opEx) throws JCSMPException
DestinationManagerhandlePartialDestinationsAdd in interface DestinationManagerdestinations - parameteropEx - parameterJCSMPExceptionpublic void handlePartialDestinationsRemove(List<Destination> destinations, JCSMPErrorResponseException opEx) throws JCSMPException
DestinationManagerhandlePartialDestinationsRemove in interface DestinationManagerdestinations - parameteropEx - parameterJCSMPExceptionpublic void handleRemoveDestination()
DestinationManagerhandleRemoveDestination in interface DestinationManagerpublic void removeAllDestinations()
DestinationManagerremoveAllDestinations in interface DestinationManagerpublic void removeDestinations(List<Destination> destinations) throws JCSMPException
DestinationManagerremoveDestinations in interface DestinationManagerdestinations - parameterJCSMPException - on errorpublic void storeDestinations(List<Destination> destinations) throws JCSMPException
DestinationManagerstoreDestinations in interface DestinationManagerdestinations - parameterJCSMPException - on errorCopyright 2004-2019 Solace Corporation. All rights reserved.