Package org.eclipse.net4j.signal
Class RequestWithConfirmation<RESULT>
java.lang.Object
org.eclipse.net4j.signal.Signal
org.eclipse.net4j.signal.SignalActor
org.eclipse.net4j.signal.RequestWithConfirmation<RESULT>
- All Implemented Interfaces:
Runnable
- Direct Known Subclasses:
RequestWithMonitoring
Represents the sender side of a two-way
signal
, i.e., one with a response.- Author:
- Eike Stepper
-
Field Summary
Fields inherited from class org.eclipse.net4j.signal.Signal
NO_TIMEOUT
-
Constructor Summary
ConstructorDescriptionRequestWithConfirmation
(SignalProtocol<?> protocol, short signalID) RequestWithConfirmation
(SignalProtocol<?> protocol, short id, String name) RequestWithConfirmation
(SignalProtocol<?> protocol, Enum<?> literal) -
Method Summary
Modifier and TypeMethodDescriptionprotected abstract RESULT
confirming
(org.eclipse.net4j.util.io.ExtendedDataInputStream in) Important Note: The confirmation must not be empty, i.e.protected ExecutorService
protected void
protected abstract void
requesting
(org.eclipse.net4j.util.io.ExtendedDataOutputStream out) send()
send
(long timeout) Methods inherited from class org.eclipse.net4j.signal.SignalActor
execute
Methods inherited from class org.eclipse.net4j.signal.Signal
closeChannelAfterMe, closeInputStreamAfterMe, closeOutputStreamAfterMe, finishInputStream, finishOutputStream, flush, getAdditionalInfo, getBufferInputStream, getBufferOutputStream, getCorrelationID, getCurrentInputStream, getCurrentOutputStream, getID, getName, getProtocol, handleRunException, run, toString, toString, wrapInputStream, wrapOutputStream
-
Constructor Details
-
RequestWithConfirmation
- Since:
- 2.0
-
RequestWithConfirmation
- Since:
- 2.0
-
RequestWithConfirmation
- Since:
- 2.0
-
-
Method Details
-
sendAsync
- Since:
- 2.0
-
send
- Throws:
Exception
RemoteException
- Since:
- 2.0
-
send
- Throws:
Exception
RemoteException
- Since:
- 2.0
-
getAsyncExecutorService
- Since:
- 2.0
-
requesting
protected abstract void requesting(org.eclipse.net4j.util.io.ExtendedDataOutputStream out) throws Exception - Throws:
Exception
-
confirming
protected abstract RESULT confirming(org.eclipse.net4j.util.io.ExtendedDataInputStream in) throws Exception Important Note: The confirmation must not be empty, i.e. the stream must be used at least to read aboolean
. Otherwise synchronization problems will result!- Throws:
Exception
-
onRemoteException
- Since:
- 4.15
-