public interface GridContinuousHandler extends Externalizable, Cloneable
| Modifier and Type | Interface and Description |
|---|---|
static class |
GridContinuousHandler.RegisterStatus
Listener registration status.
|
| Modifier and Type | Method and Description |
|---|---|
String |
cacheName() |
GridContinuousHandler |
clone()
Clones this handler.
|
GridContinuousBatch |
createBatch()
Creates new batch.
|
boolean |
isEvents() |
boolean |
isMessaging() |
boolean |
isQuery() |
boolean |
keepBinary() |
void |
notifyCallback(UUID nodeId,
UUID routineId,
Collection<?> objs,
GridKernalContext ctx)
Notifies local callback.
|
void |
onBatchAcknowledged(UUID routineId,
GridContinuousBatch batch,
GridKernalContext ctx)
Called when ack for a batch is received from client.
|
void |
onListenerRegistered(UUID routineId,
GridKernalContext ctx)
Callback called after listener is registered and acknowledgement is sent.
|
Object |
orderedTopic() |
void |
p2pMarshal(GridKernalContext ctx)
Deploys and marshals inner objects (called only if peer deployment is enabled).
|
void |
p2pUnmarshal(UUID nodeId,
GridKernalContext ctx)
Unmarshals inner objects (called only if peer deployment is enabled).
|
GridContinuousHandler.RegisterStatus |
register(UUID nodeId,
UUID routineId,
GridKernalContext ctx)
Registers listener.
|
void |
unregister(UUID routineId,
GridKernalContext ctx)
Unregisters listener.
|
void |
updateCounters(AffinityTopologyVersion topVer,
Map<UUID,Map<Integer,Long>> cntrsPerNode,
Map<Integer,Long> cntrs) |
readExternal, writeExternalGridContinuousHandler.RegisterStatus register(UUID nodeId, UUID routineId, GridKernalContext ctx) throws IgniteCheckedException
nodeId - ID of the node that started routine.routineId - Routine ID.ctx - Kernal context.IgniteCheckedException - In case of error.void onListenerRegistered(UUID routineId, GridKernalContext ctx)
routineId - Routine ID.ctx - Kernal context.void unregister(UUID routineId, GridKernalContext ctx)
routineId - Routine ID.ctx - Kernal context.void notifyCallback(UUID nodeId, UUID routineId, Collection<?> objs, GridKernalContext ctx)
nodeId - ID of the node where notification came from.routineId - Routine ID.objs - Notification objects.ctx - Kernal context.void p2pMarshal(GridKernalContext ctx) throws IgniteCheckedException
ctx - Kernal context.IgniteCheckedException - In case of error.void p2pUnmarshal(UUID nodeId, GridKernalContext ctx) throws IgniteCheckedException
nodeId - Sender node ID.ctx - Kernal context.IgniteCheckedException - In case of error.GridContinuousBatch createBatch()
void onBatchAcknowledged(UUID routineId, GridContinuousBatch batch, GridKernalContext ctx)
routineId - Routine ID.batch - Acknowledged batch.ctx - Kernal context.@Nullable Object orderedTopic()
null, notifications
will be sent in non-ordered messages.GridContinuousHandler clone()
boolean isEvents()
True if for events.boolean isMessaging()
True if for messaging.boolean isQuery()
True if for continuous queries.boolean keepBinary()
True if Ignite Binary objects should be passed to the listener and filter.String cacheName()
Follow @ApacheIgnite
Ignite Fabric : ver. 1.6.0 Release Date : May 18 2016