net.jini.jeri
Class BasicObjectEndpoint.AckListener

java.lang.Object
  extended by net.jini.jeri.BasicObjectEndpoint.AckListener
All Implemented Interfaces:
AcknowledgmentSource.Listener
Enclosing class:
BasicObjectEndpoint

private static class BasicObjectEndpoint.AckListener
extends Object
implements AcknowledgmentSource.Listener

Holds a strong reference to a BasicObjectEndpoint until an acknowledgment has been received. REMIND: Clear reference after a certain timeout regardless?


Field Summary
private  BasicObjectEndpoint ref
           
 
Constructor Summary
BasicObjectEndpoint.AckListener(BasicObjectEndpoint ref)
           
 
Method Summary
 void acknowledgmentReceived(boolean received)
          Handles either receipt of an acknowledgment that the remote call's result data has been processed by the client or an indication that no acknowledgment will be received.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

ref

private volatile BasicObjectEndpoint ref
Constructor Detail

BasicObjectEndpoint.AckListener

BasicObjectEndpoint.AckListener(BasicObjectEndpoint ref)
Method Detail

acknowledgmentReceived

public void acknowledgmentReceived(boolean received)
Description copied from interface: AcknowledgmentSource.Listener
Handles either receipt of an acknowledgment that the remote call's result data has been processed by the client or an indication that no acknowledgment will be received.

If received is true, then a positive acknowledgment has been received that the remote call's result data has been processed by the client. If received is false, then the implementation of this interface has determined that no positive acknowledgment for the associated data will be received (perhaps due, for example, to connection failure or timeout).

Specified by:
acknowledgmentReceived in interface AcknowledgmentSource.Listener
Parameters:
received - true if an acknowledgment was received, and false if no acknowledgment will be received


Copyright 2007-2010, multiple authors.
Licensed under the Apache License, Version 2.0, see the NOTICE file for attributions.