com.sun.jmx.remote.opt.internal
Class ServerCommunicatorAdmin

java.lang.Object
  extended by com.sun.jmx.remote.opt.internal.ServerCommunicatorAdmin

public abstract class ServerCommunicatorAdmin
extends Object


Constructor Summary
ServerCommunicatorAdmin(long timeout)
           
 
Method Summary
protected abstract  void doStop()
          Called by this class to tell an implementation to do stop.
 boolean reqIncoming()
          Tells that a new request message is received.
 boolean rspOutgoing()
          Tells that a response is sent out for a received request.
 void terminate()
          Terminates this object.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ServerCommunicatorAdmin

public ServerCommunicatorAdmin(long timeout)
Method Detail

reqIncoming

public boolean reqIncoming()
Tells that a new request message is received. A caller of this method should always call the method rspOutgoing to inform that a response is sent out for the received request.

Returns:
the value of the termination flag:
    true if the connection is already being terminated,
    false otherwise.

rspOutgoing

public boolean rspOutgoing()
Tells that a response is sent out for a received request.

Returns:
the value of the termination flag:
    true if the connection is already being terminated,
    false otherwise.

doStop

protected abstract void doStop()
Called by this class to tell an implementation to do stop.


terminate

public void terminate()
Terminates this object. Called only by outside, so do not need to call doStop



Copyright © 2014 Terracotta, Inc.. All rights reserved.