new ListenerEndpoint()
This endpoint listens for incoming connections. It must map incoming
connections to existing endpoints, if so available. This mapping must also
key the transport implementation to send future reconnects to the same
endpoint, if still available
- Source:
Methods
-
configure(configuration)
-
Parameters:
Name Type Description configurationString - Source:
-
getClientConfiguration(failOnUnreachable) → {String}
-
Parameters:
Name Type Description failOnUnreachableBoolean - Source:
Returns:
- Type
- String
-
listen(delegate, context)
-
Parameters:
Name Type Description delegateTrap.ListenerDelegate contextObject - Source:
-
setAuthentication(authentication)
-
Parameters:
Name Type Description authenticationTrap.Authentication - Source:
-
ttMessageReceived(message, transport, context)
-
Parameters:
Name Type Description messageTrap.Message transportTrap.Transport contextObject - Source:
Returns:
null -
ttsIncomingConnection(connection, server, context)
-
On an incoming connection, we need to perform two things. First, we need to add the listener as a delegate of the transport. It will wait for an incoming message, and, once it arrives, dispatch the transport to the appropriate recipient (or a new endpoint, if applicable). (non-Javadoc)
Parameters:
Name Type Description connectionTrap.Transport serverTrap.ListenerTransport contextObject - Source:
- See:
-
- com.ericsson.research.trap.spi.ListenerTrapTransportDelegate#ttsIncomingConnection(com.ericsson.research.trap.spi.TrapTransport, com.ericsson.research.trap.spi.ListenerTrapTransport, java.lang.Object)
-
ttStateChanged(newState, oldState, transport, context)
-
Called when the state of this listener's transport is changed.
Parameters:
Name Type Description newStateTrap.Transport.State oldStateTrap.Transport.State transportTrap.Transport contextObject - Source:
Returns:
null