JBoss Remoting 3.1.0.Beta1

org.jboss.remoting3.spi
Interface ConnectionProviderContext


public interface ConnectionProviderContext

A context for a connection provider. This provides additional endpoint methods to connection providers which are not accessible otherwise.

This interface is part of the Remoting 3 public API. While instances of this type may be used publicly, users are not encouraged to implement or extend this type as members may be added without notice.


Method Summary
 void accept(ConnectionHandlerFactory connectionHandlerFactory)
          Accept a connection that was received by the corresponding protocol handler.
 Endpoint getEndpoint()
          Get the endpoint.
 Executor getExecutor()
          Get the endpoint's executor.
<T> T
getProtocolServiceProvider(ProtocolServiceType<T> serviceType, String name)
          Get one registered protocol service provider of the given type and name.
<T> Iterable<Map.Entry<String,T>>
getProtocolServiceProviders(ProtocolServiceType<T> serviceType)
          Get the currently-registered protocol service providers of the given type.
 

Method Detail

getExecutor

Executor getExecutor()
Get the endpoint's executor.

Returns:
the endpoint executor

accept

void accept(ConnectionHandlerFactory connectionHandlerFactory)
Accept a connection that was received by the corresponding protocol handler.

Parameters:
connectionHandlerFactory - the connection handler factory

getProtocolServiceProviders

<T> Iterable<Map.Entry<String,T>> getProtocolServiceProviders(ProtocolServiceType<T> serviceType)
Get the currently-registered protocol service providers of the given type.

Type Parameters:
T - the type of the provider interface
Parameters:
serviceType - the service type
Returns:
the currently-registered providers

getProtocolServiceProvider

<T> T getProtocolServiceProvider(ProtocolServiceType<T> serviceType,
                                 String name)
Get one registered protocol service provider of the given type and name. Returns the provider, or null if none was registered for that name.

Type Parameters:
T - the type of the provider interface
Parameters:
serviceType - the service type
name - the provider name
Returns:
the provider, or null if none was matched

getEndpoint

Endpoint getEndpoint()
Get the endpoint.

Returns:
the endpoint

JBoss Remoting 3.1.0.Beta1

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