public class EventAddRequest extends AbstractCARequest implements NotifyResponseRequest
| Modifier and Type | Field and Description |
|---|---|
protected CAJChannel |
channel
Channel.
|
protected CAJContext |
context
Context.
|
protected CAJMonitor |
monitor
Response callback listener.
|
protected byte |
priority
Request send priority.
|
protected int |
requestedDataCount
Requested data count.
|
protected int |
requestedDataType
Requested data type.
|
protected int |
subsid
Subscription ID given by the context when registered.
|
requestMessage, transportDEFAULT_USER_PRIORITY, MAX_USER_PRIORITY, MIN_USER_PRIORITY, SEND_IMMEDIATELY_PRIORITY| Constructor and Description |
|---|
EventAddRequest(CAJChannel channel,
CAJMonitor monitor,
Transport transport,
int sid,
int dataType,
int dataCount,
int mask) |
| 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.
|
byte |
getPriority()
Return default priority.
|
void |
response(int status,
short dataType,
int dataCount,
ByteBuffer dataPayloadBuffer)
Called everytime on monitor changed event.
|
void |
resubscribeSubscription(Transport transport)
Resubscribe subscription.
|
void |
submit()
Submit request to the corresponding transport.
|
void |
timeout()
Timeout notification.
|
void |
updateSubscription()
Update subscription.
|
alignBuffer, calculateAlignedSize, generateRequestMessage, getRequestMessage, insertCAHeaderprotected final CAJContext context
protected final int subsid
protected final CAJMonitor monitor
protected final CAJChannel channel
protected byte priority
protected int requestedDataType
protected int requestedDataCount
public EventAddRequest(CAJChannel channel, CAJMonitor monitor, Transport transport, int sid, int dataType, int dataCount, int mask)
channel - monitor - transport - sid - dataType - dataCount - mask - public void updateSubscription()
throws IOException
IOExceptionpublic void submit()
throws IOException
null transport since it is allowed.submit in interface Requestsubmit in class AbstractCARequestIOExceptionAbstractCARequest.submit()public void resubscribeSubscription(Transport transport) throws IOException
transport - transport to be used.IOExceptionpublic int getIOID()
ResponseRequestgetIOID in interface ResponseRequestResponseRequest.getIOID()public void response(int status,
short dataType,
int dataCount,
ByteBuffer dataPayloadBuffer)
response 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)public byte getPriority()
AbstractCARequestgetPriority in interface RequestgetPriority in class AbstractCARequestRequest.getPriority()Copyright © 2004-2020 EPICS. All Rights Reserved.