Package step.plugins.event
Class InMemoryEventBrokerClient
- java.lang.Object
-
- step.plugins.event.InMemoryEventBrokerClient
-
- All Implemented Interfaces:
Closeable,AutoCloseable,EventBrokerClient
public class InMemoryEventBrokerClient extends Object implements EventBrokerClient
-
-
Constructor Summary
Constructors Constructor Description InMemoryEventBrokerClient(EventBroker eb)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Map<String,Boolean>clear()Map<String,Boolean>clearGroup(String group)Map<String,Object>clearStats()voidclose()step.plugins.events.EventconsumeEvent(String id)step.plugins.events.EventconsumeEventByGroupAndName(String group, String name)Set<String>getDistinctGroupNames()Map<String,Set<step.plugins.events.Event>>getEventBrokerGroupMap()Map<String,Set<step.plugins.events.Event>>getEventBrokerGroupMap(int skip, int limit)Map<String,step.plugins.events.Event>getEventBrokerIdMap()Map<String,step.plugins.events.Event>getEventBrokerIdMap(int skip, int limit)Set<step.plugins.events.Event>getFullGroup(String group)Map<String,Object>getGlobalStats()intgetGroupSize(String group)Set<step.plugins.events.Event>getGroupSkipLimit(String group, int skip, int limit)Map<String,Object>getGroupStats(String group)step.plugins.events.EventpeekEvent(String id)step.plugins.events.EventpeekEventByGroupAndName(String group, String name)step.plugins.events.EventputEvent(step.plugins.events.Event event)Map<String,Object>setCircuitBreakerThreshold(long circuitBreakerThreshold)
-
-
-
Constructor Detail
-
InMemoryEventBrokerClient
public InMemoryEventBrokerClient(EventBroker eb)
-
-
Method Detail
-
getEventBrokerIdMap
public Map<String,step.plugins.events.Event> getEventBrokerIdMap()
- Specified by:
getEventBrokerIdMapin interfaceEventBrokerClient
-
getEventBrokerIdMap
public Map<String,step.plugins.events.Event> getEventBrokerIdMap(int skip, int limit)
- Specified by:
getEventBrokerIdMapin interfaceEventBrokerClient
-
getEventBrokerGroupMap
public Map<String,Set<step.plugins.events.Event>> getEventBrokerGroupMap()
- Specified by:
getEventBrokerGroupMapin interfaceEventBrokerClient
-
getEventBrokerGroupMap
public Map<String,Set<step.plugins.events.Event>> getEventBrokerGroupMap(int skip, int limit)
- Specified by:
getEventBrokerGroupMapin interfaceEventBrokerClient
-
putEvent
public step.plugins.events.Event putEvent(step.plugins.events.Event event)
- Specified by:
putEventin interfaceEventBrokerClient
-
peekEvent
public step.plugins.events.Event peekEvent(String id)
- Specified by:
peekEventin interfaceEventBrokerClient
-
peekEventByGroupAndName
public step.plugins.events.Event peekEventByGroupAndName(String group, String name)
- Specified by:
peekEventByGroupAndNamein interfaceEventBrokerClient
-
consumeEvent
public step.plugins.events.Event consumeEvent(String id)
- Specified by:
consumeEventin interfaceEventBrokerClient
-
consumeEventByGroupAndName
public step.plugins.events.Event consumeEventByGroupAndName(String group, String name)
- Specified by:
consumeEventByGroupAndNamein interfaceEventBrokerClient
-
clear
public Map<String,Boolean> clear()
- Specified by:
clearin interfaceEventBrokerClient
-
clearGroup
public Map<String,Boolean> clearGroup(String group)
- Specified by:
clearGroupin interfaceEventBrokerClient
-
getGlobalStats
public Map<String,Object> getGlobalStats()
- Specified by:
getGlobalStatsin interfaceEventBrokerClient
-
getGroupStats
public Map<String,Object> getGroupStats(String group)
- Specified by:
getGroupStatsin interfaceEventBrokerClient
-
clearStats
public Map<String,Object> clearStats()
- Specified by:
clearStatsin interfaceEventBrokerClient
-
getGroupSkipLimit
public Set<step.plugins.events.Event> getGroupSkipLimit(String group, int skip, int limit)
- Specified by:
getGroupSkipLimitin interfaceEventBrokerClient
-
getFullGroup
public Set<step.plugins.events.Event> getFullGroup(String group)
- Specified by:
getFullGroupin interfaceEventBrokerClient
-
getDistinctGroupNames
public Set<String> getDistinctGroupNames()
- Specified by:
getDistinctGroupNamesin interfaceEventBrokerClient
-
getGroupSize
public int getGroupSize(String group)
- Specified by:
getGroupSizein interfaceEventBrokerClient
-
setCircuitBreakerThreshold
public Map<String,Object> setCircuitBreakerThreshold(long circuitBreakerThreshold)
- Specified by:
setCircuitBreakerThresholdin interfaceEventBrokerClient
-
close
public void close() throws IOException- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Throws:
IOException
-
-