|
Configuration Platform SDK 7.6 API Reference | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Field Summary |
Fields inherited from interface com.genesyslab.platform.commons.protocol.Channel |
DEFAULT_TIMEOUT, INFINITE_TIMEOUT |
Method Summary | |
RequestFuture |
beginRequest(Message message)
Start request and exit. |
Message |
endRequest(RequestFuture future)
Try to finnish request started with beginRequest(Message) |
Message |
endRequest(RequestFuture future,
long timeout)
Try to finnish request started with beginRequest(Message) |
boolean |
getCopyResponse()
Is responce to request() copied to receive queue. |
Message |
request(Message message)
Send the message and waitResponse for response. |
Message |
request(Message message,
long timeout)
Send the message and waitResponse for response or while specified timeout is elapsed. |
void |
setCopyResponse(boolean copyResponse)
Is responce to request() copied to receive queue. |
Methods inherited from interface com.genesyslab.platform.commons.protocol.Channel |
close, close, getTimeout, open, open, setTimeout |
Methods inherited from interface com.genesyslab.platform.commons.protocol.AsyncChannel |
beginClose, beginOpen, getState |
Methods inherited from interface com.genesyslab.platform.commons.protocol.ChannelListenerSupport |
addChannelListener, removeChannelListener |
Method Detail |
public Message request(Message message) throws ProtocolException, java.lang.IllegalStateException
message
- Message to send
java.lang.IllegalStateException
- if channel is not in an appropriate state
(e.g. closed)
ProtocolException
- if some protocol problems occuredpublic Message request(Message message, long timeout) throws ProtocolException, java.lang.IllegalStateException
message
- Message to sendtimeout
- timeout in ms.
java.lang.IllegalStateException
- if channel is not in an appropriate state
(e.g. closed)
ProtocolException
- if some protocol problems occuredpublic RequestFuture beginRequest(Message message) throws ProtocolException, java.lang.IllegalStateException
endRequest(RequestFuture)
method.
message
- message to request with
ProtocolException
- if sending of the request fails
java.lang.IllegalStateException
- if channel is in inapropriate state to
execute the requestrequest(Message)
public Message endRequest(RequestFuture future) throws ProtocolException
beginRequest(Message)
future
- future object obtained from beginRequest(Message)
ProtocolException
- if there are protocol related problemsrequest(Message)
public Message endRequest(RequestFuture future, long timeout) throws ProtocolException
beginRequest(Message)
future
- future object obtained from beginRequest(Message)
timeout
- timeout to waitResponse for response
ProtocolException
- if there are protocol related problemsrequest(Message, long)
public boolean getCopyResponse()
public void setCopyResponse(boolean copyResponse)
copyResponse
- true if responce goes to recieve queue
|
Configuration Platform SDK 7.6 API Reference | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |