|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface EventConsumer<EO extends java.util.EventObject,ECC extends EventConsumerConfiguration>
| Method Summary | |
|---|---|
void |
cancel()
Asks this EventConsumer to cancel its execution. |
boolean |
consume(EO event)
Tries to consume the provided event. |
void |
dispose()
Clean up code for this EventConsumer. |
ECC |
getConfiguration()
Retrieves the configuration for this EventConsumer. |
EventConsumerStatus |
getStatus()
Retrieves the status for this EventConsumer . |
boolean |
isCanceled()
Tells us whether or not this EventConsumer was asked to cancel its execution. |
void |
setConfiguration(ECC configuration)
Sets the configuration for this EventConsumer. |
| Methods inherited from interface it.geosolutions.geobatch.misc.ListenerRegistry |
|---|
addListener, removeListener |
| Methods inherited from interface it.geosolutions.geobatch.flow.Job |
|---|
isPaused, pause, pause, resume |
| Method Detail |
|---|
void dispose()
EventConsumer.
ECC getConfiguration()
EventConsumer.
EventConsumer.void setConfiguration(ECC configuration)
EventConsumer.
configuration - to set for this EventConsumer.EventConsumerStatus getStatus()
EventConsumer .
EventConsumer .boolean consume(EO event)
event - The event to consume
true if we can consume the provided event, false otherwise.void cancel()
EventConsumer to cancel its execution.
boolean isCanceled()
EventConsumer was asked to cancel its execution.
true in case this EventConsumer was asked to cancel its
execution, false otherwise.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||