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
- Direct Known Subclasses:
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
ConstructorDescriptionIndicationWithResponse
(SignalProtocol<?> protocol, short signalID) IndicationWithResponse
(SignalProtocol<?> protocol, short id, String name) IndicationWithResponse
(SignalProtocol<?> protocol, Enum<?> literal) -
Method Summary
Modifier and TypeMethodDescriptionprotected boolean
protected void
execute
(BufferInputStream in, BufferOutputStream out) protected String
protected abstract void
indicating
(org.eclipse.net4j.util.io.ExtendedDataInputStream in) protected abstract void
responding
(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, monitor
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
-
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
-