public class ISSNServiceCore extends Object
| Constructor and Description |
|---|
ISSNServiceCore() |
| Modifier and Type | Method and Description |
|---|---|
String |
backup() |
String |
getBackupDir() |
SubscriptionRegistry |
getRegistry() |
eu.dnetlib.enabling.tools.UniqueIdentifierGenerator |
getUuidGenerator() |
void |
setBackupDir(String backupDir) |
void |
setRegistry(SubscriptionRegistry registry) |
void |
setUuidGenerator(eu.dnetlib.enabling.tools.UniqueIdentifierGenerator uuidGenerator) |
String |
subscribe(W3CEndpointReference consumerReference,
String topicExpression,
int ttl)
subscribe a consumer to topics matching the topic expression.
|
boolean |
unsubscribe(String subscrId)
Unsubscribe a subscription, by id.
|
public String subscribe(W3CEndpointReference consumerReference, String topicExpression, int ttl) throws eu.dnetlib.enabling.is.sn.rmi.SubscriptionRequestRejectedException
consumerReference - EPR to the service to be notifiedtopicExpression - topic expressionttl - time to live in secondseu.dnetlib.enabling.is.sn.rmi.SubscriptionRequestRejectedExceptionpublic boolean unsubscribe(String subscrId)
subscrId - subscription idpublic String backup() throws eu.dnetlib.enabling.is.sn.rmi.ISSNException
eu.dnetlib.enabling.is.sn.rmi.ISSNExceptionpublic eu.dnetlib.enabling.tools.UniqueIdentifierGenerator getUuidGenerator()
public void setUuidGenerator(eu.dnetlib.enabling.tools.UniqueIdentifierGenerator uuidGenerator)
public String getBackupDir()
public void setBackupDir(String backupDir)
public SubscriptionRegistry getRegistry()
public void setRegistry(SubscriptionRegistry registry)
Copyright © 2017. All rights reserved.