|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.cosylab.epics.caj.impl.requests.AbstractCARequest
com.cosylab.epics.caj.impl.requests.EventAddRequest
public class EventAddRequest
CA event add request (creates a monitor on channel).
| Field Summary | |
|---|---|
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. |
| Fields inherited from class com.cosylab.epics.caj.impl.requests.AbstractCARequest |
|---|
requestMessage, transport |
| Fields inherited from interface com.cosylab.epics.caj.impl.Request |
|---|
DEFAULT_USER_PRIORITY, MAX_USER_PRIORITY, MIN_USER_PRIORITY, SEND_IMMEDIATELY_PRIORITY |
| Constructor Summary | |
|---|---|
EventAddRequest(CAJChannel channel,
CAJMonitor monitor,
Transport transport,
int sid,
int dataType,
int dataCount,
int mask)
|
|
| Method Summary | |
|---|---|
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. |
| Methods inherited from class com.cosylab.epics.caj.impl.requests.AbstractCARequest |
|---|
alignBuffer, calculateAlignedSize, generateRequestMessage, getRequestMessage, insertCAHeader |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected CAJContext context
protected int subsid
protected CAJMonitor monitor
protected CAJChannel channel
protected byte priority
protected int requestedDataType
protected int requestedDataCount
| Constructor Detail |
|---|
public EventAddRequest(CAJChannel channel,
CAJMonitor monitor,
Transport transport,
int sid,
int dataType,
int dataCount,
int mask)
channel - monitor - transport - sid - dataType - dataCount - mask - | Method Detail |
|---|
public void updateSubscription()
throws IOException
IOException
public 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()
ResponseRequest
getIOID 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()
ResponseRequest
cancel in interface ResponseRequestResponseRequest.cancel()public void timeout()
ResponseRequest
timeout in interface ResponseRequestResponseRequest.timeout()
public void exception(int errorCode,
String errorMessage)
ResponseRequest
exception in interface ResponseRequesterrorCode - exception code.errorMessage - received detailed message.ResponseRequest.exception(int, java.lang.String)public byte getPriority()
AbstractCARequest
getPriority in interface RequestgetPriority in class AbstractCARequestRequest.getPriority()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||