|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.activeio.ChannelFactory
A ChannelFactory
uses the requested URI's scheme to determine the
actual org.activeio.SynchChannelFactory
or
AsyncChannelFactory
implementation to use to create it's
Channel
s and ChannelServer
s.
Each URI scheme that ChannelFactory
object handles will have a
properties file located at: "META-INF/org.activeio.ChannelFactory/{scheme}".
Field Summary | |
static Executor |
DEFAULT_EXECUTOR
|
Constructor Summary | |
ChannelFactory()
|
Method Summary | |
AsyncChannelServer |
bindAsyncChannel(URI location)
Binds a server at the URI location. |
SyncChannelServer |
bindSyncChannel(URI location)
Binds a server at the URI location. |
AsyncChannel |
openAsyncChannel(URI location)
Opens a connection to server. |
SyncChannel |
openSyncChannel(URI location)
Opens a connection to server. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final Executor DEFAULT_EXECUTOR
Constructor Detail |
public ChannelFactory()
Method Detail |
public SyncChannel openSyncChannel(URI location) throws IOException
SyncChannelFactory
openSyncChannel
in interface SyncChannelFactory
location
-
IOException
public SyncChannelServer bindSyncChannel(URI location) throws IOException
SyncChannelFactory
bindSyncChannel
in interface SyncChannelFactory
location
-
IOException
public AsyncChannel openAsyncChannel(URI location) throws IOException
AsyncChannelFactory
openAsyncChannel
in interface AsyncChannelFactory
location
-
IOException
public AsyncChannelServer bindAsyncChannel(URI location) throws IOException
AsyncChannelFactory
bindAsyncChannel
in interface AsyncChannelFactory
location
-
IOException
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |