Class: ListenerEndpoint

ListenerEndpoint

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
Author:
  • Vladimir Katardjiev
Source:

Methods

configure(configuration)

Parameters:
Name Type Description
configuration String
Source:

getClientConfiguration(failOnUnreachable) → {String}

Parameters:
Name Type Description
failOnUnreachable Boolean
Source:
Returns:
Type
String

listen(delegate, context)

Parameters:
Name Type Description
delegate Trap.ListenerDelegate
context Object
Source:

setAuthentication(authentication)

Parameters:
Name Type Description
authentication Trap.Authentication
Source:

ttMessageReceived(message, transport, context)

Parameters:
Name Type Description
message Trap.Message
transport Trap.Transport
context Object
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
connection Trap.Transport
server Trap.ListenerTransport
context Object
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
newState Trap.Transport.State
oldState Trap.Transport.State
transport Trap.Transport
context Object
Source:
Returns:
null