public class FilePushStore extends Object implements PushStore
| Modifier and Type | Field and Description |
|---|---|
protected JAXBContext |
ctx |
protected File |
dir |
protected Map<String,PushRegistration> |
map |
| Constructor and Description |
|---|
FilePushStore(String dirname) |
| Modifier and Type | Method and Description |
|---|---|
void |
add(PushRegistration reg) |
List<PushRegistration> |
getByDestination(String destination) |
List<PushRegistration> |
getRegistrations() |
void |
remove(PushRegistration reg) |
void |
removeAll() |
protected void |
save(PushRegistration reg) |
void |
update(PushRegistration reg) |
protected Map<String,PushRegistration> map
protected File dir
protected JAXBContext ctx
public List<PushRegistration> getRegistrations()
public List<PushRegistration> getByDestination(String destination)
getByDestination in interface PushStorepublic void update(PushRegistration reg) throws Exception
protected void save(PushRegistration reg) throws JAXBException
JAXBExceptionpublic void add(PushRegistration reg) throws Exception
public void remove(PushRegistration reg) throws Exception
Copyright © 2016 JBoss, a division of Red Hat. All rights reserved.