public class EventBrokerImpl extends Object implements EventBroker
| Modifier and Type | Field and Description | 
|---|---|
static String | 
DEFAULT_GROUP_VALUE  | 
static String | 
DEFAULT_NAME_VALUE  | 
| Constructor and Description | 
|---|
EventBrokerImpl()  | 
EventBrokerImpl(long circuitBreakerThreshold,
               boolean advancedStatsOn,
               boolean hashedGroupNameOn)  | 
| Modifier and Type | Method and Description | 
|---|---|
void | 
clear()  | 
void | 
clearGroup(String group)  | 
void | 
clearStats()  | 
step.plugins.events.Event | 
findOldestEvent()  | 
step.plugins.events.Event | 
findOldestEventForGroup(String group)  | 
step.plugins.events.Event | 
findYoungestEvent()  | 
step.plugins.events.Event | 
findYoungestEventForGroup(String group)  | 
step.plugins.events.Event | 
get(String id)  | 
step.plugins.events.Event | 
get(String group,
   String name)
Now using a sync-free optimistic version of the group lookup as an alternative to syncGroupOn 
 | 
boolean | 
getAdvancedStatsOn()  | 
long | 
getCircuitBreakerThreshold()  | 
long | 
getCumulatedAttemptedGets()  | 
long | 
getCumulatedAttemptedGroupGets()  | 
long | 
getCumulatedGets()  | 
long | 
getCumulatedPeeks()  | 
long | 
getCumulatedPuts()  | 
Set<String> | 
getDistinctGroupNames()  | 
Map<String,Set<step.plugins.events.Event>> | 
getFullGroupBasedEventMap()  | 
Map<String,Set<step.plugins.events.Event>> | 
getGroupBasedEventMap(int skip,
                     int limit)  | 
Set<step.plugins.events.Event> | 
getGroupEvents(String group)
Group access 
 | 
Set<step.plugins.events.Event> | 
getGroupEvents(String group,
              int skip,
              int limit)  | 
Map<String,Object> | 
getGroupStats(String group)  | 
Map<String,step.plugins.events.Event> | 
getIdBasedEventMap()  | 
Map<String,step.plugins.events.Event> | 
getIdBasedEventMap(int skip,
                  int limit)  | 
int | 
getSize()  | 
int | 
getSizeForGroup(String group)  | 
int | 
getSizeWaterMark()
Not fully reliable due to the nature of CHM 
 | 
Map<String,Object> | 
getStats()  | 
boolean | 
isUniqueGroupNameOn()  | 
step.plugins.events.Event | 
peek(String id)  | 
step.plugins.events.Event | 
peek(String group,
    String name)
Group primitives, adapted via lookup() to Id primitives 
 | 
step.plugins.events.Event | 
put(step.plugins.events.Event event)
Main primitives, based on id 
 | 
void | 
setAdvancedStatsOn(boolean statsOn)
Stats 
 | 
void | 
setCircuitBreakerThreshold(long circuitBreakerThreshold)  | 
void | 
setUniqueGroupNameOn(boolean hashedGroupNameOn)  | 
String | 
toString()  | 
public static String DEFAULT_GROUP_VALUE
public static String DEFAULT_NAME_VALUE
public EventBrokerImpl()
public EventBrokerImpl(long circuitBreakerThreshold,
                       boolean advancedStatsOn,
                       boolean hashedGroupNameOn)
public void clear()
clear in interface EventBrokerpublic Map<String,step.plugins.events.Event> getIdBasedEventMap()
getIdBasedEventMap in interface EventBrokerpublic Map<String,step.plugins.events.Event> getIdBasedEventMap(int skip, int limit)
getIdBasedEventMap in interface EventBrokerpublic long getCircuitBreakerThreshold()
getCircuitBreakerThreshold in interface EventBrokerpublic void setCircuitBreakerThreshold(long circuitBreakerThreshold)
setCircuitBreakerThreshold in interface EventBrokerpublic boolean isUniqueGroupNameOn()
isUniqueGroupNameOn in interface EventBrokerpublic void setUniqueGroupNameOn(boolean hashedGroupNameOn)
setUniqueGroupNameOn in interface EventBrokerpublic int getSize()
getSize in interface EventBrokerpublic step.plugins.events.Event put(step.plugins.events.Event event)
                              throws Exception
put in interface EventBrokerExceptionpublic step.plugins.events.Event get(String id)
get in interface EventBrokerpublic step.plugins.events.Event peek(String id)
peek in interface EventBrokerpublic step.plugins.events.Event peek(String group, String name)
peek in interface EventBrokerpublic void clearGroup(String group)
clearGroup in interface EventBrokerpublic step.plugins.events.Event get(String group, String name)
get in interface EventBrokerpublic void setAdvancedStatsOn(boolean statsOn)
setAdvancedStatsOn in interface EventBrokerpublic boolean getAdvancedStatsOn()
getAdvancedStatsOn in interface EventBrokerpublic long getCumulatedPuts()
getCumulatedPuts in interface EventBrokerpublic long getCumulatedGets()
getCumulatedGets in interface EventBrokerpublic long getCumulatedAttemptedGets()
getCumulatedAttemptedGets in interface EventBrokerpublic long getCumulatedAttemptedGroupGets()
getCumulatedAttemptedGroupGets in interface EventBrokerpublic long getCumulatedPeeks()
getCumulatedPeeks in interface EventBrokerpublic Map<String,Object> getStats()
getStats in interface EventBrokerpublic Map<String,Object> getGroupStats(String group)
getGroupStats in interface EventBrokergroup - public int getSizeWaterMark()
getSizeWaterMark in interface EventBrokerpublic step.plugins.events.Event findOldestEvent()
findOldestEvent in interface EventBrokerpublic step.plugins.events.Event findYoungestEvent()
findYoungestEvent in interface EventBrokerpublic int getSizeForGroup(String group)
getSizeForGroup in interface EventBrokerpublic step.plugins.events.Event findYoungestEventForGroup(String group)
findYoungestEventForGroup in interface EventBrokerpublic step.plugins.events.Event findOldestEventForGroup(String group)
findOldestEventForGroup in interface EventBrokerpublic void clearStats()
clearStats in interface EventBrokerpublic Set<step.plugins.events.Event> getGroupEvents(String group)
getGroupEvents in interface EventBrokerpublic Set<step.plugins.events.Event> getGroupEvents(String group, int skip, int limit)
getGroupEvents in interface EventBrokerpublic Map<String,Set<step.plugins.events.Event>> getFullGroupBasedEventMap()
getFullGroupBasedEventMap in interface EventBrokerpublic Map<String,Set<step.plugins.events.Event>> getGroupBasedEventMap(int skip, int limit)
getGroupBasedEventMap in interface EventBrokerpublic Set<String> getDistinctGroupNames()
getDistinctGroupNames in interface EventBrokerCopyright © 2020. All rights reserved.