Class WriteNotifyRequest
- java.lang.Object
-
- com.cosylab.epics.caj.impl.requests.AbstractCARequest
-
- com.cosylab.epics.caj.impl.requests.WriteNotifyRequest
-
- All Implemented Interfaces:
NotifyResponseRequest,Request,ResponseRequest
public class WriteNotifyRequest extends AbstractCARequest implements NotifyResponseRequest
CA write notify.- Version:
- $id$
- Author:
- Matej Sekoranja
-
-
Field Summary
Fields Modifier and Type Field Description protected PutListenercallbackResponse callback listener.protected CAJChannelchannelChannel.protected CAJContextcontextContext.protected intioidI/O ID given by the context when registered.protected intrequestedDataCountRequested data count.protected intrequestedDataTypeRequested data type.-
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
Constructors Constructor Description WriteNotifyRequest(CAJChannel channel, PutListener callback, Transport transport, int sid, int dataType, int dataCount, Object value)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidcancel()Cancel response request (allways to be called to complete/destroy).voidexception(int errorCode, String errorMessage)Exception response notification.intgetIOID()Get I/O ID.voidresponse(int status, short dataType, int dataCount, ByteBuffer dataPayloadBuffer)Notification response.voidtimeout()Timeout notification.-
Methods inherited from class com.cosylab.epics.caj.impl.requests.AbstractCARequest
alignBuffer, calculateAlignedSize, generateRequestMessage, getPriority, getRequestMessage, insertCAHeader, submit
-
-
-
-
Field Detail
-
context
protected CAJContext context
Context.
-
ioid
protected int ioid
I/O ID given by the context when registered.
-
callback
protected PutListener callback
Response callback listener.
-
channel
protected CAJChannel channel
Channel.
-
requestedDataType
protected int requestedDataType
Requested data type.
-
requestedDataCount
protected int requestedDataCount
Requested data count.
-
-
Constructor Detail
-
WriteNotifyRequest
public WriteNotifyRequest(CAJChannel channel, PutListener callback, Transport transport, int sid, int dataType, int dataCount, Object value)
- Parameters:
channel-callback-transport-sid-dataType-dataCount-value-
-
-
Method Detail
-
getIOID
public int getIOID()
Description copied from interface:ResponseRequestGet I/O ID.- Specified by:
getIOIDin interfaceResponseRequest- Returns:
- ioid
- See Also:
ResponseRequest.getIOID()
-
response
public void response(int status, short dataType, int dataCount, ByteBuffer dataPayloadBuffer)Description copied from interface:NotifyResponseRequestNotification response.- Specified by:
responsein interfaceNotifyResponseRequest- See Also:
NotifyResponseRequest.response(int, short, int, java.nio.ByteBuffer)
-
cancel
public void cancel()
Description copied from interface:ResponseRequestCancel response request (allways to be called to complete/destroy).- Specified by:
cancelin interfaceResponseRequest- See Also:
ResponseRequest.cancel()
-
timeout
public void timeout()
Description copied from interface:ResponseRequestTimeout notification.- Specified by:
timeoutin interfaceResponseRequest- See Also:
ResponseRequest.timeout()
-
exception
public void exception(int errorCode, String errorMessage)Description copied from interface:ResponseRequestException response notification.- Specified by:
exceptionin interfaceResponseRequest- Parameters:
errorCode- exception code.errorMessage- received detailed message.- See Also:
ResponseRequest.exception(int, java.lang.String)
-
-