Package org.eclipse.net4j.signal
Class IndicationWithMonitoring
java.lang.Object
org.eclipse.net4j.signal.Signal
org.eclipse.net4j.signal.SignalReactor
org.eclipse.net4j.signal.IndicationWithResponse
org.eclipse.net4j.signal.IndicationWithMonitoring
- All Implemented Interfaces:
Runnable
,org.eclipse.net4j.util.container.IManagedContainerProvider
- Direct Known Subclasses:
AuthenticationIndication
,ConfirmationIndication
Represents the receiver side of a two-way
signal
with additional support for remote progress monitoring.- Since:
- 2.0
- Author:
- Eike Stepper
-
Field Summary
Fields inherited from class org.eclipse.net4j.signal.Signal
NO_TIMEOUT
-
Constructor Summary
ConstructorDescriptionIndicationWithMonitoring
(SignalProtocol<?> protocol, short signalID) IndicationWithMonitoring
(SignalProtocol<?> protocol, short id, String name) IndicationWithMonitoring
(SignalProtocol<?> protocol, Enum<?> literal) -
Method Summary
Modifier and TypeMethodDescriptionprotected int
protected ExecutorService
Deprecated.As of 4.13 not used anymore.protected final int
protected final void
indicating
(org.eclipse.net4j.util.io.ExtendedDataInputStream in) protected abstract void
indicating
(org.eclipse.net4j.util.io.ExtendedDataInputStream in, org.eclipse.net4j.util.om.monitor.OMMonitor monitor) protected final void
responding
(org.eclipse.net4j.util.io.ExtendedDataOutputStream out) Important Note: The response must not be empty, i.e.protected abstract void
responding
(org.eclipse.net4j.util.io.ExtendedDataOutputStream out, org.eclipse.net4j.util.om.monitor.OMMonitor monitor) Methods inherited from class org.eclipse.net4j.signal.IndicationWithResponse
closeChannelAfterException, execute, getExceptionMessage
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, getContainer, getCorrelationID, getCurrentInputStream, getCurrentOutputStream, getID, getName, getProtocol, handleRunException, run, toString, toString, wrapInputStream, wrapOutputStream
-
Constructor Details
-
IndicationWithMonitoring
- Since:
- 2.0
-
IndicationWithMonitoring
- Since:
- 2.0
-
IndicationWithMonitoring
- Since:
- 2.0
-
-
Method Details
-
indicating
protected final void indicating(org.eclipse.net4j.util.io.ExtendedDataInputStream in) throws Exception - Specified by:
indicating
in classIndicationWithResponse
- Throws:
Exception
-
responding
protected final void responding(org.eclipse.net4j.util.io.ExtendedDataOutputStream out) throws Exception Description copied from class:IndicationWithResponse
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!- Specified by:
responding
in classIndicationWithResponse
- Throws:
Exception
-
indicating
protected abstract void indicating(org.eclipse.net4j.util.io.ExtendedDataInputStream in, org.eclipse.net4j.util.om.monitor.OMMonitor monitor) throws Exception - Throws:
Exception
-
responding
protected abstract void responding(org.eclipse.net4j.util.io.ExtendedDataOutputStream out, org.eclipse.net4j.util.om.monitor.OMMonitor monitor) throws Exception - Throws:
Exception
-
getIndicatingWorkPercent
protected int getIndicatingWorkPercent() -
getRespondingWorkPercent
protected final int getRespondingWorkPercent()- Since:
- 4.13
-
getMonitoringExecutorService
Deprecated.As of 4.13 not used anymore.- Since:
- 2.0
-