public abstract class RequestWithConfirmation<RESULT> extends SignalActor
signal, i.e., one with a response.NO_TIMEOUT| Constructor and Description |
|---|
RequestWithConfirmation(SignalProtocol<?> protocol,
Enum<?> literal) |
RequestWithConfirmation(SignalProtocol<?> protocol,
short signalID) |
RequestWithConfirmation(SignalProtocol<?> protocol,
short id,
String name) |
| Modifier and Type | Method and Description |
|---|---|
protected abstract RESULT |
confirming(ExtendedDataInputStream in)
Important Note: The confirmation must not be empty, i.e. the stream must be used at least to read a
boolean. |
protected ExecutorService |
getAsyncExecutorService() |
protected abstract void |
requesting(ExtendedDataOutputStream out) |
RESULT |
send() |
RESULT |
send(long timeout) |
Future<RESULT> |
sendAsync() |
executecloseChannelAfterMe, closeInputStreamAfterMe, closeOutputStreamAfterMe, finishInputStream, finishOutputStream, flush, getAdditionalInfo, getBufferInputStream, getBufferOutputStream, getCorrelationID, getCurrentInputStream, getCurrentOutputStream, getID, getName, getProtocol, run, toString, wrapInputStream, wrapOutputStreampublic RequestWithConfirmation(SignalProtocol<?> protocol, short id, String name)
public RequestWithConfirmation(SignalProtocol<?> protocol, short signalID)
public RequestWithConfirmation(SignalProtocol<?> protocol, Enum<?> literal)
public RESULT send() throws Exception, RemoteException
ExceptionRemoteExceptionpublic RESULT send(long timeout) throws Exception, RemoteException
ExceptionRemoteExceptionprotected ExecutorService getAsyncExecutorService()
protected abstract void requesting(ExtendedDataOutputStream out) throws Exception
Exceptionprotected abstract RESULT confirming(ExtendedDataInputStream in) throws Exception
boolean. Otherwise synchronization problems will result!ExceptionCopyright (c) 2011-2015 Eike Stepper (Berlin, Germany) and others.