Package step.plugins.event
Class InMemoryEventBrokerClient
- java.lang.Object
-
- step.plugins.event.InMemoryEventBrokerClient
-
- All Implemented Interfaces:
java.io.Closeable
,java.lang.AutoCloseable
,EventBrokerClient
public class InMemoryEventBrokerClient extends java.lang.Object implements EventBrokerClient
-
-
Constructor Summary
Constructors Constructor Description InMemoryEventBrokerClient(EventBroker eb)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.Map<java.lang.String,java.lang.Boolean>
clear()
java.util.Map<java.lang.String,java.lang.Boolean>
clearGroup(java.lang.String group)
java.util.Map<java.lang.String,java.lang.Object>
clearStats()
void
close()
step.plugins.events.Event
consumeEvent(java.lang.String id)
step.plugins.events.Event
consumeEventByGroupAndName(java.lang.String group, java.lang.String name)
java.util.Set<java.lang.String>
getDistinctGroupNames()
java.util.Map<java.lang.String,java.util.Set<step.plugins.events.Event>>
getEventBrokerGroupMap()
java.util.Map<java.lang.String,java.util.Set<step.plugins.events.Event>>
getEventBrokerGroupMap(int skip, int limit)
java.util.Map<java.lang.String,step.plugins.events.Event>
getEventBrokerIdMap()
java.util.Map<java.lang.String,step.plugins.events.Event>
getEventBrokerIdMap(int skip, int limit)
java.util.Set<step.plugins.events.Event>
getFullGroup(java.lang.String group)
java.util.Map<java.lang.String,java.lang.Object>
getGlobalStats()
int
getGroupSize(java.lang.String group)
java.util.Set<step.plugins.events.Event>
getGroupSkipLimit(java.lang.String group, int skip, int limit)
java.util.Map<java.lang.String,java.lang.Object>
getGroupStats(java.lang.String group)
step.plugins.events.Event
peekEvent(java.lang.String id)
step.plugins.events.Event
peekEventByGroupAndName(java.lang.String group, java.lang.String name)
step.plugins.events.Event
putEvent(step.plugins.events.Event event)
java.util.Map<java.lang.String,java.lang.Object>
setCircuitBreakerThreshold(long circuitBreakerThreshold)
-
-
-
Constructor Detail
-
InMemoryEventBrokerClient
public InMemoryEventBrokerClient(EventBroker eb)
-
-
Method Detail
-
getEventBrokerIdMap
public java.util.Map<java.lang.String,step.plugins.events.Event> getEventBrokerIdMap()
- Specified by:
getEventBrokerIdMap
in interfaceEventBrokerClient
-
getEventBrokerIdMap
public java.util.Map<java.lang.String,step.plugins.events.Event> getEventBrokerIdMap(int skip, int limit)
- Specified by:
getEventBrokerIdMap
in interfaceEventBrokerClient
-
getEventBrokerGroupMap
public java.util.Map<java.lang.String,java.util.Set<step.plugins.events.Event>> getEventBrokerGroupMap()
- Specified by:
getEventBrokerGroupMap
in interfaceEventBrokerClient
-
getEventBrokerGroupMap
public java.util.Map<java.lang.String,java.util.Set<step.plugins.events.Event>> getEventBrokerGroupMap(int skip, int limit)
- Specified by:
getEventBrokerGroupMap
in interfaceEventBrokerClient
-
putEvent
public step.plugins.events.Event putEvent(step.plugins.events.Event event)
- Specified by:
putEvent
in interfaceEventBrokerClient
-
peekEvent
public step.plugins.events.Event peekEvent(java.lang.String id)
- Specified by:
peekEvent
in interfaceEventBrokerClient
-
peekEventByGroupAndName
public step.plugins.events.Event peekEventByGroupAndName(java.lang.String group, java.lang.String name)
- Specified by:
peekEventByGroupAndName
in interfaceEventBrokerClient
-
consumeEvent
public step.plugins.events.Event consumeEvent(java.lang.String id)
- Specified by:
consumeEvent
in interfaceEventBrokerClient
-
consumeEventByGroupAndName
public step.plugins.events.Event consumeEventByGroupAndName(java.lang.String group, java.lang.String name)
- Specified by:
consumeEventByGroupAndName
in interfaceEventBrokerClient
-
clear
public java.util.Map<java.lang.String,java.lang.Boolean> clear()
- Specified by:
clear
in interfaceEventBrokerClient
-
clearGroup
public java.util.Map<java.lang.String,java.lang.Boolean> clearGroup(java.lang.String group)
- Specified by:
clearGroup
in interfaceEventBrokerClient
-
getGlobalStats
public java.util.Map<java.lang.String,java.lang.Object> getGlobalStats()
- Specified by:
getGlobalStats
in interfaceEventBrokerClient
-
getGroupStats
public java.util.Map<java.lang.String,java.lang.Object> getGroupStats(java.lang.String group)
- Specified by:
getGroupStats
in interfaceEventBrokerClient
-
clearStats
public java.util.Map<java.lang.String,java.lang.Object> clearStats()
- Specified by:
clearStats
in interfaceEventBrokerClient
-
getGroupSkipLimit
public java.util.Set<step.plugins.events.Event> getGroupSkipLimit(java.lang.String group, int skip, int limit)
- Specified by:
getGroupSkipLimit
in interfaceEventBrokerClient
-
getFullGroup
public java.util.Set<step.plugins.events.Event> getFullGroup(java.lang.String group)
- Specified by:
getFullGroup
in interfaceEventBrokerClient
-
getDistinctGroupNames
public java.util.Set<java.lang.String> getDistinctGroupNames()
- Specified by:
getDistinctGroupNames
in interfaceEventBrokerClient
-
getGroupSize
public int getGroupSize(java.lang.String group)
- Specified by:
getGroupSize
in interfaceEventBrokerClient
-
setCircuitBreakerThreshold
public java.util.Map<java.lang.String,java.lang.Object> setCircuitBreakerThreshold(long circuitBreakerThreshold)
- Specified by:
setCircuitBreakerThreshold
in interfaceEventBrokerClient
-
close
public void close() throws java.io.IOException
- Specified by:
close
in interfacejava.lang.AutoCloseable
- Specified by:
close
in interfacejava.io.Closeable
- Throws:
java.io.IOException
-
-