Package net.jini.io.context
Interface AcknowledgmentSource
public interface AcknowledgmentSource
A server context element for registering interest in receiving an acknowledgment that the remote
call's result data has been delivered to and processed by the client.
- Since:
- 2.0
- Author:
- Sun Microsystems, Inc.
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic interfaceA callback object for registering with anAcknowledgmentSourceserver context element to handle the receipt of an acknowledgment that the remote call's result data has been processed by the client. -
Method Summary
Modifier and TypeMethodDescriptionbooleanRegisters the specified listener as interested in receiving an acknowledgment that the remote call's result data has been processed by the client.
-
Method Details
-
addAcknowledgmentListener
Registers the specified listener as interested in receiving an acknowledgment that the remote call's result data has been processed by the client. Multiple listeners may be registered with this object.The implementation of this interface may refuse a registration, such as if the remote call's result data has already been written. This method returns
trueif the listener was successfully registered, andfalseif the registration was refused.- Parameters:
listener- the listener to register- Returns:
trueif the listener was successfully registered, andfalseif the registration was refused- Throws:
NullPointerException- iflistenerisnull
-