Class RequestWithConfirmation<RESULT>
java.lang.Object
org.eclipse.net4j.signal.Signal
org.eclipse.net4j.signal.SignalActor
org.eclipse.net4j.signal.RequestWithConfirmation<RESULT>
- Type Parameters:
RESULT- the response type
- All Implemented Interfaces:
Runnable, org.eclipse.net4j.util.container.IManagedContainerProvider
- Direct Known Subclasses:
EntityRequest, 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 Signal
NO_TIMEOUT -
Constructor Summary
ConstructorsConstructorDescriptionRequestWithConfirmation(SignalProtocol<?> protocol, short signalID) RequestWithConfirmation(SignalProtocol<?> protocol, short id, String name) RequestWithConfirmation(SignalProtocol<?> protocol, Enum<?> literal) -
Method Summary
Modifier and TypeMethodDescriptionprotected abstract RESULTconfirming(org.eclipse.net4j.util.io.ExtendedDataInputStream in) Important Note: The confirmation must not be empty, i.e.protected ExecutorServiceprotected voidprotected abstract voidrequesting(org.eclipse.net4j.util.io.ExtendedDataOutputStream out) send()send(long timeout) Methods inherited from class SignalActor
executeMethods inherited from class Signal
closeChannelAfterMe, closeInputStreamAfterMe, closeOutputStreamAfterMe, finishInputStream, finishOutputStream, flush, getAdditionalInfo, getBufferInputStream, getBufferOutputStream, getContainer, 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
-
send
- Throws:
ExceptionRemoteException- Since:
- 2.0
-
send
- Throws:
ExceptionRemoteException- Since:
- 2.0
-
getAsyncExecutorService
- Since:
- 2.0
-
requesting
-
confirming
-
onRemoteException
- Since:
- 4.15
-