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
- 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
ConstructorsConstructorDescriptionIndicationWithMonitoring(SignalProtocol<?> protocol, short signalID) IndicationWithMonitoring(SignalProtocol<?> protocol, short id, String name) IndicationWithMonitoring(SignalProtocol<?> protocol, Enum<?> literal) -
Method Summary
Modifier and TypeMethodDescriptionprotected intprotected ExecutorServiceDeprecated.As of 4.13 not used anymore.protected final intprotected final voidindicating(org.eclipse.net4j.util.io.ExtendedDataInputStream in) protected abstract voidindicating(org.eclipse.net4j.util.io.ExtendedDataInputStream in, org.eclipse.net4j.util.om.monitor.OMMonitor monitor) protected final voidresponding(org.eclipse.net4j.util.io.ExtendedDataOutputStream out) Important Note: The response must not be empty, i.e.protected abstract voidresponding(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, getExceptionMessageMethods 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, 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:
indicatingin classIndicationWithResponse- Throws:
Exception
-
responding
protected final void responding(org.eclipse.net4j.util.io.ExtendedDataOutputStream out) throws Exception Description copied from class:IndicationWithResponseImportant 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:
respondingin 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
-