org.eclipse.net4j.signal
Class IndicationWithResponse

java.lang.Object
  extended by org.eclipse.net4j.signal.Signal
      extended by org.eclipse.net4j.signal.SignalReactor
          extended by org.eclipse.net4j.signal.IndicationWithResponse
All Implemented Interfaces:
java.lang.Runnable

public abstract class IndicationWithResponse
extends SignalReactor


Constructor Summary
protected IndicationWithResponse()
           
 
Method Summary
protected  void execute(BufferInputStream in, BufferOutputStream out)
           
protected abstract  void indicating(ExtendedDataInputStream in)
           
protected abstract  void responding(ExtendedDataOutputStream out)
          Important Note: The response must not be empty, i.e. the stream must be used at least to write a boolean.
 
Methods inherited from class org.eclipse.net4j.signal.SignalReactor
toString
 
Methods inherited from class org.eclipse.net4j.signal.Signal
finishInputStream, finishOutputStream, getBufferInputStream, getBufferOutputStream, getCorrelationID, getProtocol, getSignalID, run, runSync, wrapInputStream, wrapOutputStream
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

IndicationWithResponse

protected IndicationWithResponse()
Method Detail

execute

protected void execute(BufferInputStream in,
                       BufferOutputStream out)
                throws java.lang.Exception
Specified by:
execute in class Signal
Throws:
java.lang.Exception

indicating

protected abstract void indicating(ExtendedDataInputStream in)
                            throws java.io.IOException
Throws:
java.io.IOException

responding

protected abstract void responding(ExtendedDataOutputStream out)
                            throws java.io.IOException
Important Note: The response must not be empty, i.e. the stream must be used at least to write a boolean. Otherwise synchronization problems will result!

Throws:
java.io.IOException

Copyright (c) 2004 - 2008 Eike Stepper, Germany.
All Rights Reserved.