Package step.plugins.event
Interface EventBroker
-
- All Known Implementing Classes:
EventBrokerImpl
public interface EventBroker
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidclear()voidclearGroup(java.lang.String group)voidclearStats()step.plugins.events.EventfindOldestEvent()step.plugins.events.EventfindOldestEventForGroup(java.lang.String group)step.plugins.events.EventfindYoungestEvent()step.plugins.events.EventfindYoungestEventForGroup(java.lang.String group)step.plugins.events.Eventget(java.lang.String id)step.plugins.events.Eventget(java.lang.String group, java.lang.String name)Now using a sync-free optimistic version of the group lookup as an alternative to syncGroupOnbooleangetAdvancedStatsOn()longgetCircuitBreakerThreshold()longgetCumulatedAttemptedGets()longgetCumulatedAttemptedGroupGets()longgetCumulatedGets()longgetCumulatedPeeks()longgetCumulatedPuts()java.util.Set<java.lang.String>getDistinctGroupNames()java.util.Map<java.lang.String,java.util.Set<step.plugins.events.Event>>getFullGroupBasedEventMap()java.util.Map<java.lang.String,java.util.Set<step.plugins.events.Event>>getGroupBasedEventMap(int skip, int limit)java.util.Set<step.plugins.events.Event>getGroupEvents(java.lang.String group)Group accessjava.util.Set<step.plugins.events.Event>getGroupEvents(java.lang.String group, int skip, int limit)java.util.Map<java.lang.String,java.lang.Object>getGroupStats(java.lang.String group)java.util.Map<java.lang.String,step.plugins.events.Event>getIdBasedEventMap()java.util.Map<java.lang.String,step.plugins.events.Event>getIdBasedEventMap(int skip, int limit)intgetSize()intgetSizeForGroup(java.lang.String group)intgetSizeWaterMark()Not fully reliable due to the nature of CHMjava.util.Map<java.lang.String,java.lang.Object>getStats()booleanisUniqueGroupNameOn()step.plugins.events.Eventpeek(java.lang.String id)step.plugins.events.Eventpeek(java.lang.String group, java.lang.String name)Group primitives, adapted via lookup() to Id primitivesstep.plugins.events.Eventput(step.plugins.events.Event event)Main primitives, based on idvoidsetAdvancedStatsOn(boolean statsOn)StatsvoidsetCircuitBreakerThreshold(long circuitBreakerThreshold)voidsetUniqueGroupNameOn(boolean hashedGroupNameOn)
-
-
-
Method Detail
-
clear
void clear()
-
getIdBasedEventMap
java.util.Map<java.lang.String,step.plugins.events.Event> getIdBasedEventMap()
-
getIdBasedEventMap
java.util.Map<java.lang.String,step.plugins.events.Event> getIdBasedEventMap(int skip, int limit)
-
getCircuitBreakerThreshold
long getCircuitBreakerThreshold()
-
setCircuitBreakerThreshold
void setCircuitBreakerThreshold(long circuitBreakerThreshold)
-
isUniqueGroupNameOn
boolean isUniqueGroupNameOn()
-
setUniqueGroupNameOn
void setUniqueGroupNameOn(boolean hashedGroupNameOn)
-
getSize
int getSize()
-
put
step.plugins.events.Event put(step.plugins.events.Event event) throws java.lang.ExceptionMain primitives, based on id- Throws:
java.lang.Exception
-
get
step.plugins.events.Event get(java.lang.String id)
-
peek
step.plugins.events.Event peek(java.lang.String id)
-
peek
step.plugins.events.Event peek(java.lang.String group, java.lang.String name)Group primitives, adapted via lookup() to Id primitives
-
clearGroup
void clearGroup(java.lang.String group)
-
get
step.plugins.events.Event get(java.lang.String group, java.lang.String name)Now using a sync-free optimistic version of the group lookup as an alternative to syncGroupOn
-
setAdvancedStatsOn
void setAdvancedStatsOn(boolean statsOn)
Stats
-
getAdvancedStatsOn
boolean getAdvancedStatsOn()
-
getCumulatedPuts
long getCumulatedPuts()
-
getCumulatedGets
long getCumulatedGets()
-
getCumulatedAttemptedGets
long getCumulatedAttemptedGets()
-
getCumulatedAttemptedGroupGets
long getCumulatedAttemptedGroupGets()
-
getCumulatedPeeks
long getCumulatedPeeks()
-
getStats
java.util.Map<java.lang.String,java.lang.Object> getStats()
-
getGroupStats
java.util.Map<java.lang.String,java.lang.Object> getGroupStats(java.lang.String group)
- Parameters:
group-- Returns:
-
getSizeWaterMark
int getSizeWaterMark()
Not fully reliable due to the nature of CHM
-
findOldestEvent
step.plugins.events.Event findOldestEvent()
-
findYoungestEvent
step.plugins.events.Event findYoungestEvent()
-
getSizeForGroup
int getSizeForGroup(java.lang.String group)
-
findYoungestEventForGroup
step.plugins.events.Event findYoungestEventForGroup(java.lang.String group)
-
findOldestEventForGroup
step.plugins.events.Event findOldestEventForGroup(java.lang.String group)
-
clearStats
void clearStats()
-
getGroupEvents
java.util.Set<step.plugins.events.Event> getGroupEvents(java.lang.String group)
Group access
-
getGroupEvents
java.util.Set<step.plugins.events.Event> getGroupEvents(java.lang.String group, int skip, int limit)
-
getFullGroupBasedEventMap
java.util.Map<java.lang.String,java.util.Set<step.plugins.events.Event>> getFullGroupBasedEventMap()
-
getGroupBasedEventMap
java.util.Map<java.lang.String,java.util.Set<step.plugins.events.Event>> getGroupBasedEventMap(int skip, int limit)
-
getDistinctGroupNames
java.util.Set<java.lang.String> getDistinctGroupNames()
-
-