|
JBoss Remoting 3.1.0.Beta1 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
I - the request typeO - the reply typepublic static interface Endpoint.ServiceBuilder<I,O>

A service builder for new service registration.
| Method Summary | ||
|---|---|---|
Registration |
register()
Register the service. |
|
Endpoint.ServiceBuilder<I,O> |
setClientListener(ClientListener<? super I,? extends O> clientListener)
Set the request listener. |
|
Endpoint.ServiceBuilder<I,O> |
setGroupName(String groupName)
Set the group name. |
|
Endpoint.ServiceBuilder<I,O> |
setOptionMap(org.jboss.xnio.OptionMap optionMap)
Set the option map for the service. |
|
|
setReplyType(Class<N> newReplyType)
Clear the configured client listener and set a new reply type. |
|
|
setRequestType(Class<N> newRequestType)
Clear the configured client listener and set a new request type. |
|
Endpoint.ServiceBuilder<I,O> |
setServiceType(String serviceType)
Set the service type string, which should follow the convention for package names (reversed domain names). |
|
| Method Detail |
|---|
Endpoint.ServiceBuilder<I,O> setGroupName(String groupName)
groupName - the group name
Endpoint.ServiceBuilder<I,O> setServiceType(String serviceType)
serviceType - the service type
<N> Endpoint.ServiceBuilder<N,O> setRequestType(Class<N> newRequestType)
N - the new request typenewRequestType - the new request type's class
<N> Endpoint.ServiceBuilder<I,N> setReplyType(Class<N> newReplyType)
N - the new reply typenewReplyType - the new reply type's class
Endpoint.ServiceBuilder<I,O> setClientListener(ClientListener<? super I,? extends O> clientListener)
clientListener - the request listener
Endpoint.ServiceBuilder<I,O> setOptionMap(org.jboss.xnio.OptionMap optionMap)
RemotingOptions.BUFFER_SIZE - the recommended buffer size for marshallers to use for this serviceRemotingOptions.CLASS_COUNT - the recommended class count for marshallers to use for this serviceRemotingOptions.INSTANCE_COUNT - the recommended instance count for marshallers to use for this serviceRemotingOptions.METRIC - the relative desirability or "distance" of this serviceRemotingOptions.MARSHALLING_PROTOCOLS - the marshalling protocols which are allowed for this service,
in order of decreasing preference; if none is given, all registered protocols will
be made availableRemotingOptions.MARSHALLING_CLASS_RESOLVERS - the class resolvers which are allowed for this service,
in order of decreasing preference; if none is given, the default class resolver is usedRemotingOptions.MARSHALLING_CLASS_TABLES - the class tables which are allowed for this service, in order
of decreasing preferenceRemotingOptions.MARSHALLING_EXTERNALIZER_FACTORIES - the class externalizer factories which are allowed
for this service, in order of decreasing preferenceRemotingOptions.REMOTELY_VISIBLE - true if this service should be remotely accessible,
false otherwise (defaults to true)RemotingOptions.REQUIRE_SECURE - true if this service may only be accessed over a secure/encrypted
channel; defaults to false, however this should be set to true if sensitive data (e.g.
passwords) may be transmitted as part of a payload
optionMap - the option map
Registration register()
throws IOException
registerService EndpointPermission to invoke this method.
IOException - if a problem occurs with registration
|
JBoss Remoting 3.1.0.Beta1 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||