|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.sun.sgs.impl.io.AbstractSocketEndpoint
com.sun.sgs.impl.io.SocketEndpoint
public class SocketEndpoint
An implementation of Endpoint that wraps a SocketAddress.
| Field Summary |
|---|
| Fields inherited from class com.sun.sgs.impl.io.AbstractSocketEndpoint |
|---|
address, executor, numProcessors, transportType |
| Constructor Summary | |
|---|---|
SocketEndpoint(SocketAddress address,
TransportType type)
Constructs a SocketEndpoint with the given
TransportType. |
|
SocketEndpoint(SocketAddress address,
TransportType type,
Executor executor)
Constructs a SocketEndpoint with the given TransportType
using the given Executor for thread management. |
|
SocketEndpoint(SocketAddress address,
TransportType type,
Executor executor,
int numProcessors)
Constructs a SocketEndpoint with the given TransportType
using the given Executor for thread management. |
|
| Method Summary | |
|---|---|
Connector<SocketAddress> |
createConnector()
Creates a Connector for actively initiating a connection
to this remote Endpoint. |
| Methods inherited from class com.sun.sgs.impl.io.AbstractSocketEndpoint |
|---|
getAddress, getExecutor, getNumProcessors, getTransportType, toString |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface com.sun.sgs.io.Endpoint |
|---|
getAddress |
| Constructor Detail |
|---|
public SocketEndpoint(SocketAddress address,
TransportType type)
SocketEndpoint with the given
TransportType. This is the simplest way to create a
SocketEndpoint. The returned endpoint will use
new daemon threads as necessary for processing events.
address - the socket address to encapsulatetype - the type of transport
public SocketEndpoint(SocketAddress address,
TransportType type,
Executor executor)
SocketEndpoint with the given TransportType
using the given Executor for thread management.
address - the socket address to encapsulatetype - the type of transportexecutor - an Executor specifying the threading policy
public SocketEndpoint(SocketAddress address,
TransportType type,
Executor executor,
int numProcessors)
SocketEndpoint with the given TransportType
using the given Executor for thread management.
The numProcessors parameter refers to the number of
MINA SocketIOProcessors to initially create.
numProcessors must be greater than 0.
(Note: A SocketIOProcessor is a MINA implementation detail that
controls the internal processing of the IO. It is exposed here to allow
clients the option to configure this value, which may aid
performance tuning).
address - the socket address to encapsulatetype - the type of transportexecutor - An Executor specifying the threading policynumProcessors - the number of processors available on this
system. This value must be greater than 0.
IllegalArgumentException - if numProcessors is
zero or negative.| Method Detail |
|---|
public Connector<SocketAddress> createConnector()
Connector for actively initiating a connection
to this remote Endpoint.
createConnector in interface Endpoint<SocketAddress>Connector configured to connect to this
Endpoint
|
Project Darkstar, Version 0.9.8.4 2013-07-29 20:28:05 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||