public interface

OnClose

implements TrapDelegate
com.ericsson.research.trap.delegates.OnClose
Known Indirect Subclasses

Class Overview

Interface for delegates that wish to know when the endpoint has closed (changed state to CLOSED). If OnError is not otherwise supplied, this method will also be called when the state is changed to error.

Summary

Public Methods
abstract void trapClose(TrapEndpoint endpoint, Object context)
Called when the endpoint changes state from OPEN or CLOSING to CLOSED, that is, when Trap orderly disconnects.

Public Methods

public abstract void trapClose (TrapEndpoint endpoint, Object context)

Called when the endpoint changes state from OPEN or CLOSING to CLOSED, that is, when Trap orderly disconnects. If OnError is not specified, this method will also be called should the endpoint change state to ERROR from any state.

Parameters
endpoint The endpoint that changed state to CLOSED.
context The delegate context, if specified by setDelegateContext(Object), or null otherwise.