public class RedisDataStore extends Object implements org.jboss.aerogear.simplepush.server.datastore.DataStore
| Constructor and Description |
|---|
RedisDataStore(String host,
int port) |
| Modifier and Type | Method and Description |
|---|---|
org.jboss.aerogear.simplepush.server.Channel |
getChannel(String channelId) |
Set<String> |
getChannelIds(String uaid) |
byte[] |
getPrivateKeySalt() |
Set<org.jboss.aerogear.simplepush.protocol.Ack> |
getUnacknowledged(String uaid) |
Set<org.jboss.aerogear.simplepush.protocol.Ack> |
removeAcknowledged(String uaid,
Set<org.jboss.aerogear.simplepush.protocol.Ack> acks) |
void |
removeChannels(Set<String> channelIds) |
void |
removeChannels(String uaid) |
boolean |
saveChannel(org.jboss.aerogear.simplepush.server.Channel channel) |
void |
savePrivateKeySalt(byte[] salt) |
String |
saveUnacknowledged(String channelId,
long version) |
String |
updateVersion(String endpointToken,
long newVersion) |
public RedisDataStore(String host, int port)
public void savePrivateKeySalt(byte[] salt)
savePrivateKeySalt in interface org.jboss.aerogear.simplepush.server.datastore.DataStorepublic byte[] getPrivateKeySalt()
getPrivateKeySalt in interface org.jboss.aerogear.simplepush.server.datastore.DataStorepublic boolean saveChannel(org.jboss.aerogear.simplepush.server.Channel channel)
saveChannel in interface org.jboss.aerogear.simplepush.server.datastore.DataStorepublic void removeChannels(Set<String> channelIds)
removeChannels in interface org.jboss.aerogear.simplepush.server.datastore.DataStorepublic org.jboss.aerogear.simplepush.server.Channel getChannel(String channelId) throws org.jboss.aerogear.simplepush.server.datastore.ChannelNotFoundException
getChannel in interface org.jboss.aerogear.simplepush.server.datastore.DataStoreorg.jboss.aerogear.simplepush.server.datastore.ChannelNotFoundExceptionpublic Set<String> getChannelIds(String uaid)
getChannelIds in interface org.jboss.aerogear.simplepush.server.datastore.DataStorepublic void removeChannels(String uaid)
removeChannels in interface org.jboss.aerogear.simplepush.server.datastore.DataStorepublic String updateVersion(String endpointToken, long newVersion) throws org.jboss.aerogear.simplepush.server.datastore.VersionException, org.jboss.aerogear.simplepush.server.datastore.ChannelNotFoundException
updateVersion in interface org.jboss.aerogear.simplepush.server.datastore.DataStoreorg.jboss.aerogear.simplepush.server.datastore.VersionExceptionorg.jboss.aerogear.simplepush.server.datastore.ChannelNotFoundExceptionpublic String saveUnacknowledged(String channelId, long version)
saveUnacknowledged in interface org.jboss.aerogear.simplepush.server.datastore.DataStorepublic Set<org.jboss.aerogear.simplepush.protocol.Ack> getUnacknowledged(String uaid)
getUnacknowledged in interface org.jboss.aerogear.simplepush.server.datastore.DataStoreCopyright © 2014 JBoss by Red Hat. All Rights Reserved.