V - The type of value to insertK - The type of key generated for the inserted value.public interface InsertEventFactory<K,V> extends EventFactory<K,V>
| Modifier and Type | Interface and Description |
|---|---|
static class |
InsertEventFactory.EmptyInsertEventFactory<K,V>
An empty implementation of the InsertEventFactory interface.
|
| Modifier and Type | Method and Description |
|---|---|
<E extends Event> |
endEvent(K key,
V value)
Generate an end event for inserting the given value with the given key.
|
<E extends Event> |
exceptionEvent(V value,
InsertException exception)
Generate an exception event for inserting the given value.
|
<E extends Event> |
progressEvent(V value,
double progress)
Generate a progress event for inserting the given value.
|
<E extends Event> |
startEvent(V value)
Generate a start event for inserting the given value.
|
<E extends Event> com.google.common.base.Optional<E> startEvent(V value)
E - the type of eventvalue - the value being inserted<E extends Event> com.google.common.base.Optional<E> progressEvent(V value, double progress)
E - the type of event.value - the value being inserted.progress - a representation of the progress of the delete operation.<E extends Event> com.google.common.base.Optional<E> endEvent(K key, V value)
E - the type of eventkey - the key returned during the insert operation at which the value can be obtained later.value - the value being inserted<E extends Event> com.google.common.base.Optional<E> exceptionEvent(V value, InsertException exception)
E - the type of eventvalue - the value being insertedexception - the InsertException raised while inserting the value to a Chunk.