public interface ExclusionService<ENTITY,IDENTIFIER>
| Modifier and Type | Field and Description |
|---|---|
static long |
DEFAULT_TIME_TO_LIVE
one year default time to live
|
| Modifier and Type | Method and Description |
|---|---|
void |
addBlacklisted(IDENTIFIER identifier,
String uri,
FlowInvocationContext flowInvocationContext)
Add this identifier to the blacklist based on a specified identifier and associated URI.
|
String |
getErrorUri(IDENTIFIER identifier)
Get the errorUri from the blacklist associated with the identifier.
|
FlowInvocationContext |
getFlowInvocationContext(IDENTIFIER identifier)
Get the flow invocation from the blacklist associated with the identifier.
|
void |
housekeep()
Housekeep expired exclusionEvents.
|
boolean |
isBlackListed(IDENTIFIER identifier)
Is this identifier on the blacklist.
|
boolean |
isBlackListEmpty() |
void |
park(ENTITY entity,
IDENTIFIER identifier)
Park this entity
|
void |
removeBlacklisted(IDENTIFIER identifier)
Remove this entity from the blacklist
|
void |
setTimeToLive(Long timeToLive)
Allow entities blacklisted to be marked with a timeToLive.
|
static final long DEFAULT_TIME_TO_LIVE
boolean isBlackListed(IDENTIFIER identifier)
identifier - void addBlacklisted(IDENTIFIER identifier, String uri, FlowInvocationContext flowInvocationContext)
identifier - uri - String getErrorUri(IDENTIFIER identifier)
FlowInvocationContext getFlowInvocationContext(IDENTIFIER identifier)
identifier - void park(ENTITY entity, IDENTIFIER identifier)
entity - void removeBlacklisted(IDENTIFIER identifier)
identifier - void setTimeToLive(Long timeToLive)
timeToLive - void housekeep()
boolean isBlackListEmpty()
Copyright © 2007-2020 Ikasan. All Rights Reserved.