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 |
onClientDisconnected()
Client node disconnected callback.
|
void |
onNodeLeft()
Node which started routine leave topology.
|
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,T2<Long,Long>>> cntrsPerNode,
Map<Integer,T2<Long,Long>> cntrs) |
readExternal, writeExternal
GridContinuousHandler.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 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 onClientDisconnected()
void onBatchAcknowledged(UUID routineId, GridContinuousBatch batch, GridKernalContext ctx)
routineId
- Routine ID.batch
- Acknowledged batch.ctx
- Kernal context.void onNodeLeft()
@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. 2.0.0 Release Date : April 30 2017