public class PlatformEvents extends PlatformAbstractTarget
FALSE, log, platformCtx, TRUE| Constructor and Description |
|---|
PlatformEvents(PlatformContext platformCtx,
IgniteEvents events)
Ctor.
|
| Modifier and Type | Method and Description |
|---|---|
protected IgniteInternalFuture |
currentFuture()
|
protected PlatformFutureUtils.Writer |
futureWriter(int opId)
|
boolean |
isEnabled(int type)
Check if event is enabled.
|
void |
localListen(long hnd,
int type)
Adds an event listener for local events.
|
protected long |
processInStreamOutLong(int type,
BinaryRawReaderEx reader)
Process IN operation.
|
protected void |
processInStreamOutStream(int type,
BinaryRawReaderEx reader,
BinaryRawWriterEx writer)
Process IN-OUT operation.
|
protected void |
processOutStream(int type,
BinaryRawWriterEx writer)
Process OUT operation.
|
boolean |
stopLocalListen(long hnd)
Removes an event listener for local events.
|
PlatformEvents |
withAsync()
Gets events with asynchronous mode enabled.
|
convertException, inObjectStreamOutStream, inStreamOutLong, inStreamOutObject, inStreamOutStream, listenFuture, listenFutureAndGet, listenFutureForOperation, listenFutureForOperationAndGet, outLong, outObject, outStream, platformContext, processInObjectStreamOutStream, processInStreamOutObject, processOutLong, processOutObject, throwUnsupportedpublic PlatformEvents(PlatformContext platformCtx, IgniteEvents events)
platformCtx - Context.events - Ignite events.public PlatformEvents withAsync()
public void localListen(long hnd,
int type)
hnd - Interop listener handle.type - Event type.public boolean stopLocalListen(long hnd)
hnd - Interop listener handle.public boolean isEnabled(int type)
type - Event type.True if event of passed in type is enabled.protected long processInStreamOutLong(int type,
BinaryRawReaderEx reader)
throws IgniteCheckedException
processInStreamOutLong in class PlatformAbstractTargettype - Type.reader - Binary reader.IgniteCheckedException - In case of exception.protected void processInStreamOutStream(int type,
BinaryRawReaderEx reader,
BinaryRawWriterEx writer)
throws IgniteCheckedException
processInStreamOutStream in class PlatformAbstractTargettype - Type.reader - Binary reader.writer - Binary writer.IgniteCheckedException - In case of exception.protected void processOutStream(int type,
BinaryRawWriterEx writer)
throws IgniteCheckedException
processOutStream in class PlatformAbstractTargettype - Type.writer - Binary writer.IgniteCheckedException - In case of exception.protected IgniteInternalFuture currentFuture() throws IgniteCheckedException
currentFuture in class PlatformAbstractTargetIgniteCheckedException@Nullable protected PlatformFutureUtils.Writer futureWriter(int opId)
futureWriter in class PlatformAbstractTargetopId - Operation id.
Follow @ApacheIgnite
Ignite Fabric : ver. 1.6.0 Release Date : May 18 2016