public interface PushNotificationDelegate extends Closeable
PushNotificationService
is responsible for monitoring configuration changes and detecting
when it should create new instances of any given PushNotificationDelegate
. If a configuration
change takes place, the service will ascertain whether a new instance is required by calling
isRequireNewDelegate(PushNotificationServiceConfig)
.
If a new instance is required, the previous instance will be shutdown by calling the Closeable.close()
method before creating a new instance.
If a new instance is not required then the existing instance will be updated by calling
updateDelegate(PushNotificationServiceConfig)
.Modifier and Type | Method and Description |
---|---|
Set<Predicate> |
getAuthenticationMessagePredicates()
Returns a set of authentication message predicates required by this delegate.
|
String |
getAuthServiceLocation()
Returns the (public, relative) authentication service location of this delegate - if appropriate.
|
MessageDispatcher |
getMessageDispatcher()
Returns the MessageDispatcher for this delegate.
|
Set<Predicate> |
getRegistrationMessagePredicates()
Returns a set of registration message predicates required by this delegate.
|
String |
getRegServiceLocation()
Returns the (public, relative) registration service location of this delegate - if appropriate.
|
boolean |
isRequireNewDelegate(PushNotificationServiceConfig newConfig)
Returns whether or not the new config is so different from the old that the existing delegate
should be removed from the pool.
|
void |
send(PushMessage message)
Used to send a message out to the PushNotificationDelegate to be delivered.
|
void |
startServices()
Starts any required services for this delegate.
|
void |
updateDelegate(PushNotificationServiceConfig newConfig)
Updates the existing delegate's config.
|
void startServices() throws PushNotificationException
PushNotificationException
- if there were any issues starting the service.void send(PushMessage message)
message
- The message to send.boolean isRequireNewDelegate(PushNotificationServiceConfig newConfig)
newConfig
- The new configuration to check against the old.void updateDelegate(PushNotificationServiceConfig newConfig)
newConfig
- The new config from which to update the existing delegate.String getRegServiceLocation()
WebtopNaming
.String getAuthServiceLocation()
WebtopNaming
.Set<Predicate> getRegistrationMessagePredicates()
Set<Predicate> getAuthenticationMessagePredicates()
MessageDispatcher getMessageDispatcher()
Copyright © 2010–2025 Open Identity Platform Community. All rights reserved.