com.sun.jmx.remote.generic
Interface SynchroCallback


public interface SynchroCallback

This interface specifies methods to call back a server to execute a remote request.


Method Summary
 void connectionException(Exception ie)
          Called when an Exception occurs when reading a request sent by the peer or when writing the response to the recived request.
 Message execute(Message request)
          Called when receiving a remote request.
 

Method Detail

execute

Message execute(Message request)
Called when receiving a remote request. If the return value is null, then an implementation does not need to send back this null value to the other side. This is the case when receiving messages sent by the sendOneWay method. For example, a client will send CloseMessage using the sendOneWay method and a server receiving this message should return null.


connectionException

void connectionException(Exception ie)
Called when an Exception occurs when reading a request sent by the peer or when writing the response to the recived request.



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