Class ClientNotification
- java.lang.Object
-
- org.apache.ignite.internal.processors.odbc.ClientListenerResponse
-
- org.apache.ignite.internal.processors.platform.client.ClientNotification
-
- All Implemented Interfaces:
ClientOutgoingMessage
- Direct Known Subclasses:
ClientCacheEntryEventNotification,ClientObjectNotification
public class ClientNotification extends ClientListenerResponse implements ClientOutgoingMessage
Server to client notification for some resource.
-
-
Field Summary
-
Fields inherited from class org.apache.ignite.internal.processors.odbc.ClientListenerResponse
STATUS_FAILED, STATUS_SUCCESS
-
-
Constructor Summary
Constructors Constructor Description ClientNotification(short opCode, long rsrcId)Constructor.ClientNotification(short opCode, long rsrcId, int status, String err)Constructor.ClientNotification(short opCode, long rsrcId, String err)Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidencode(ClientConnectionContext ctx, BinaryRawWriterEx writer)Encodes the notification data.longresourceId()Gets the resource id.
-
-
-
Constructor Detail
-
ClientNotification
public ClientNotification(short opCode, long rsrcId)Constructor.- Parameters:
opCode- Operation code.rsrcId- Resource id.
-
ClientNotification
public ClientNotification(short opCode, long rsrcId, String err)Constructor.- Parameters:
opCode- Operation code.rsrcId- Resource id.err- Error message.
-
ClientNotification
public ClientNotification(short opCode, long rsrcId, int status, String err)Constructor.- Parameters:
opCode- Operation code.rsrcId- Resource id.status- Status code.err- Error message.
-
-
Method Detail
-
encode
public void encode(ClientConnectionContext ctx, BinaryRawWriterEx writer)
Encodes the notification data.- Specified by:
encodein interfaceClientOutgoingMessage- Parameters:
ctx- Connection context.writer- Writer.
-
resourceId
public long resourceId()
Gets the resource id.- Returns:
- Resource id.
-
-