public class SctpRegistrator extends Object
SelectorLoop
Modifier and Type | Method and Description |
---|---|
static IFuture<Void> |
register(SelectorLoop loop,
com.sun.nio.sctp.SctpChannel channel,
ISctpHandler handler)
Registers an SCTP channel with the specified selector loop.
|
static IFuture<Void> |
register(SelectorLoop loop,
com.sun.nio.sctp.SctpChannel channel,
SctpSession session)
Registers an SCTP channel with the specified selector loop.
|
static IFuture<Void> |
register(SelectorLoop loop,
com.sun.nio.sctp.SctpMultiChannel channel,
ISctpHandler handler)
Registers an SCTP multi channel with the specified selector loop.
|
static IFuture<Void> |
register(SelectorLoop loop,
com.sun.nio.sctp.SctpMultiChannel channel,
SctpMultiSession session)
Registers an SCTP multi channel with the specified selector loop.
|
static IFuture<Void> |
register(SelectorLoop loop,
com.sun.nio.sctp.SctpServerChannel channel,
ISctpSessionFactory factory)
Registers a listening SCTP channel with the specified selector loop.
|
public static IFuture<Void> register(SelectorLoop loop, com.sun.nio.sctp.SctpChannel channel, ISctpHandler handler) throws ClosedChannelException
This method is asynchronous.
loop
- the selector loop the SCTP channel should be registered withchannel
- the SCTP channel to register with the specified selector
loophandler
- the handler that will be associated with the channelClosedChannelException
- if the channel is closedSelectorLoopStoppingException
- if selector loop is in the process of stoppingClosedSelectorException
- if the internal selector is closedIllegalArgumentException
- if a bit in ops does not correspond to an operation that is
supported by the channelpublic static IFuture<Void> register(SelectorLoop loop, com.sun.nio.sctp.SctpChannel channel, SctpSession session) throws ClosedChannelException
This method is asynchronous.
loop
- the selector loop the SCTP channel should be registered withchannel
- the SCTP channel to register with the specified selector
loopsession
- the session that will be associated with the channelClosedChannelException
- if the channel is closedSelectorLoopStoppingException
- if selector loop is in the process of
stoppingClosedSelectorException
- if the internal selector is closedIllegalArgumentException
- if a bit in ops does not correspond to
an operation that is supported by the
channelIllegalArgumentException
- if the session argument is
null
or the session object
is reused (was already registered with
some selector loop)public static IFuture<Void> register(SelectorLoop loop, com.sun.nio.sctp.SctpServerChannel channel, ISctpSessionFactory factory) throws ClosedChannelException
This method is asynchronous.
loop
- the selector loop the SCTP channel should be registered withchannel
- the listening SCTP channel to register with the specified
selector loopfactory
- the factory that will be associated with the channel. It will
be used to create sessions for newly accepted channelsClosedChannelException
- if the channel is closedSelectorLoopStoppingException
- if selector loop is in the process of
stoppingClosedSelectorException
- if the internal selector is closedIllegalArgumentException
- if a bit in ops does not correspond to
an operation that is supported by the
channelIllegalArgumentException
- if the factory argument is
null
public static IFuture<Void> register(SelectorLoop loop, com.sun.nio.sctp.SctpMultiChannel channel, ISctpHandler handler) throws ClosedChannelException
This method is asynchronous.
loop
- the selector loop the SCTP multi channel should be registered
withchannel
- the SCTP multi channel to register with the specified selector
loophandler
- the handler that will be associated with the channelClosedChannelException
- if the channel is closedSelectorLoopStoppingException
- if selector loop is in the process of
stoppingClosedSelectorException
- if the internal selector is closedIllegalArgumentException
- if a bit in ops does not correspond to
an operation that is supported by the
channelpublic static IFuture<Void> register(SelectorLoop loop, com.sun.nio.sctp.SctpMultiChannel channel, SctpMultiSession session) throws ClosedChannelException
This method is asynchronous.
loop
- the selector loop the SCTP multi channel should be registered
withchannel
- the SCTP multi channel to register with the specified selector
loopsession
- the session that will be associated with the channelClosedChannelException
- if the channel is closedSelectorLoopStoppingException
- if selector loop is in the process of
stoppingClosedSelectorException
- if the internal selector is closedIllegalArgumentException
- if a bit in ops does not correspond to
an operation that is supported by the
channelIllegalArgumentException
- if the session argument is
null
or the session object
is reused (was already registered with
some selector loop)Copyright © 2017–2022 SNF4J.ORG. All rights reserved.