public interface DataStore
| Modifier and Type | Method and Description |
|---|---|
byte[] |
getPrivateKeySalt()
Returns the server's private key salt.
|
Optional<Registration> |
getRegistration(String registrationId)
Returns the
Registration for the passed-in id. |
Set<Subscription> |
getSubscriptions(String registrationId)
Returns registrations for a certain registration.
|
void |
removeChannel(Subscription subscription)
Remove a
Subscription from the underlying storage system. |
void |
saveChannel(Subscription subscription)
Saves a
Subscription to the underlying storage system. |
void |
savePrivateKeySalt(byte[] salt)
Saves the server's private key salt.
|
boolean |
saveRegistration(Registration registration)
Saves a
Registration to the underlying storage system. |
void savePrivateKeySalt(byte[] salt)
salt - the server's private key saltbyte[] getPrivateKeySalt()
byte[] the server's private key salt if one has previously been saved, or an empty byte arrayboolean saveRegistration(Registration registration)
Registration to the underlying storage system.registration - the registration to storetrue if storage was successfulOptional<Registration> getRegistration(String registrationId)
Registration for the passed-in id.registrationId - the registration identifier to retreivevoid saveChannel(Subscription subscription)
Subscription to the underlying storage system.subscription - the subscription to storevoid removeChannel(Subscription subscription)
Subscription from the underlying storage system.subscription - the subscription to removeSet<Subscription> getSubscriptions(String registrationId)
registrationId - the registration identifier.Set<Channel> the registration idCopyright © 2015 JBoss by Red Hat. All Rights Reserved.