public abstract class SnapshotOutputRateLimiter extends Object implements Schedulable
| Modifier and Type | Field and Description |
|---|---|
protected ExecutionPlanContext |
executionPlanContext |
protected LockWrapper |
lockWrapper |
protected StateEventCloner |
stateEventCloner |
protected StreamEventCloner |
streamEventCloner |
| Modifier | Constructor and Description |
|---|---|
protected |
SnapshotOutputRateLimiter(WrappedSnapshotOutputRateLimiter wrappedSnapshotOutputRateLimiter,
ExecutionPlanContext executionPlanContext) |
| Modifier and Type | Method and Description |
|---|---|
abstract SnapshotOutputRateLimiter |
clone(String key,
WrappedSnapshotOutputRateLimiter wrappedSnapshotOutputRateLimiter) |
protected ComplexEvent |
cloneComplexEvent(ComplexEvent complexEvent)
Clones a given complex event.
|
abstract Object[] |
currentState() |
abstract void |
process(ComplexEventChunk complexEventChunk) |
abstract void |
restoreState(Object[] state) |
protected void |
sendToCallBacks(ComplexEventChunk complexEventChunk) |
void |
setQueryLock(LockWrapper lockWrapper) |
void |
setStateEventCloner(StateEventCloner stateEventCloner) |
void |
setStreamEventCloner(StreamEventCloner streamEventCloner) |
abstract void |
start() |
abstract void |
stop() |
protected ExecutionPlanContext executionPlanContext
protected StreamEventCloner streamEventCloner
protected StateEventCloner stateEventCloner
protected LockWrapper lockWrapper
protected SnapshotOutputRateLimiter(WrappedSnapshotOutputRateLimiter wrappedSnapshotOutputRateLimiter, ExecutionPlanContext executionPlanContext)
public abstract void process(ComplexEventChunk complexEventChunk)
process in interface Schedulablepublic abstract SnapshotOutputRateLimiter clone(String key, WrappedSnapshotOutputRateLimiter wrappedSnapshotOutputRateLimiter)
public void setStreamEventCloner(StreamEventCloner streamEventCloner)
public void setStateEventCloner(StateEventCloner stateEventCloner)
protected void sendToCallBacks(ComplexEventChunk complexEventChunk)
protected ComplexEvent cloneComplexEvent(ComplexEvent complexEvent)
complexEvent - Complex event to be clonedpublic abstract void start()
public abstract void stop()
public abstract Object[] currentState()
public abstract void restoreState(Object[] state)
public void setQueryLock(LockWrapper lockWrapper)
Copyright © 2018 WSO2. All Rights Reserved.