Package org.eclipse.net4j.signal
Class IndicationWithResponse
java.lang.Object
org.eclipse.net4j.signal.Signal
org.eclipse.net4j.signal.SignalReactor
org.eclipse.net4j.signal.IndicationWithResponse
- All Implemented Interfaces:
Runnable,org.eclipse.net4j.util.container.IManagedContainerProvider
- Direct Known Subclasses:
EntityIndication,IndicationWithMonitoring
Represents the receiver 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
ConstructorsConstructorDescriptionIndicationWithResponse(SignalProtocol<?> protocol, short signalID) IndicationWithResponse(SignalProtocol<?> protocol, short id, String name) IndicationWithResponse(SignalProtocol<?> protocol, Enum<?> literal) -
Method Summary
Modifier and TypeMethodDescriptionprotected booleanprotected voidexecute(BufferInputStream in, BufferOutputStream out) protected Stringprotected abstract voidindicating(org.eclipse.net4j.util.io.ExtendedDataInputStream in) protected abstract voidresponding(org.eclipse.net4j.util.io.ExtendedDataOutputStream out) Important Note: The response must not be empty, i.e.Methods inherited from class org.eclipse.net4j.signal.SignalReactor
createMonitor, monitorMethods inherited from class org.eclipse.net4j.signal.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
-
IndicationWithResponse
- Since:
- 2.0
-
IndicationWithResponse
- Since:
- 2.0
-
IndicationWithResponse
- Since:
- 2.0
-
-
Method Details
-
closeChannelAfterException
protected boolean closeChannelAfterException()- Since:
- 4.4
-
getExceptionMessage
- Since:
- 2.0
-
execute
-
indicating
protected abstract void indicating(org.eclipse.net4j.util.io.ExtendedDataInputStream in) throws Exception - Throws:
Exception
-
responding
protected abstract void responding(org.eclipse.net4j.util.io.ExtendedDataOutputStream out) throws Exception Important Note: The response must not be empty, i.e. the stream must be used at least to write aboolean. Otherwise synchronization problems will result!- Throws:
Exception
-