public class WriteNotifyRequest extends AbstractCARequest implements NotifyResponseRequest
| Modifier and Type | Field and Description |
|---|---|
protected PutListener |
callback
Response callback listener.
|
protected CAJChannel |
channel
Channel.
|
protected CAJContext |
context
Context.
|
protected int |
ioid
I/O ID given by the context when registered.
|
protected int |
requestedDataCount
Requested data count.
|
protected int |
requestedDataType
Requested data type.
|
requestMessage, transportDEFAULT_USER_PRIORITY, MAX_USER_PRIORITY, MIN_USER_PRIORITY, SEND_IMMEDIATELY_PRIORITY| Constructor and Description |
|---|
WriteNotifyRequest(CAJChannel channel,
PutListener callback,
Transport transport,
int sid,
int dataType,
int dataCount,
Object value) |
| Modifier and Type | Method and Description |
|---|---|
void |
cancel()
Cancel response request (allways to be called to complete/destroy).
|
void |
exception(int errorCode,
String errorMessage)
Exception response notification.
|
int |
getIOID()
Get I/O ID.
|
void |
response(int status,
short dataType,
int dataCount,
ByteBuffer dataPayloadBuffer)
Notification response.
|
void |
timeout()
Timeout notification.
|
alignBuffer, calculateAlignedSize, generateRequestMessage, getPriority, getRequestMessage, insertCAHeader, submitprotected CAJContext context
protected int ioid
protected PutListener callback
protected CAJChannel channel
protected int requestedDataType
protected int requestedDataCount
public WriteNotifyRequest(CAJChannel channel, PutListener callback, Transport transport, int sid, int dataType, int dataCount, Object value)
channel - callback - transport - sid - dataType - dataCount - value - public int getIOID()
ResponseRequestgetIOID in interface ResponseRequestResponseRequest.getIOID()public void response(int status,
short dataType,
int dataCount,
ByteBuffer dataPayloadBuffer)
NotifyResponseRequestresponse in interface NotifyResponseRequestNotifyResponseRequest.response(int, short, int, java.nio.ByteBuffer)public void cancel()
ResponseRequestcancel in interface ResponseRequestResponseRequest.cancel()public void timeout()
ResponseRequesttimeout in interface ResponseRequestResponseRequest.timeout()public void exception(int errorCode,
String errorMessage)
ResponseRequestexception in interface ResponseRequesterrorCode - exception code.errorMessage - received detailed message.ResponseRequest.exception(int, java.lang.String)Copyright © 2004-2020 EPICS. All Rights Reserved.