JBoss Remoting 3.1.0.Beta2

org.jboss.remoting3
Interface ClientListener<I,O>

Type Parameters:
I - the request type
O - the reply type
All Superinterfaces:
EventListener

public interface ClientListener<I,O>
extends EventListener

A client listener associated with a service. When a client is opened for this service, a new request listener is created and returned.


Method Summary
 RequestListener<I,O> handleClientOpen(ClientContext clientContext, org.jboss.xnio.OptionMap optionMap)
          Handle a client open by returning a new request listener.
 

Method Detail

handleClientOpen

RequestListener<I,O> handleClientOpen(ClientContext clientContext,
                                      org.jboss.xnio.OptionMap optionMap)
Handle a client open by returning a new request listener. The supplied client context may be used to register a notifier for when the client is closed.

If null is returned, the client is closed with an error.

Parameters:
clientContext - the client context
optionMap - the service open options
Returns:
the request listener

JBoss Remoting 3.1.0.Beta2

Copyright © 2010 JBoss, a division of Red Hat, Inc.