public abstract class AbstractSctpSessionFactory extends Object implements ISctpSessionFactory
ISctpSessionFactory interface.| Modifier | Constructor and Description |
|---|---|
protected |
AbstractSctpSessionFactory()
Constructs a factory that creates the basic SCTP sessions.
|
| Modifier and Type | Method and Description |
|---|---|
void |
closed(com.sun.nio.sctp.SctpServerChannel channel)
Notifies about closing and unregistering of a listening channel.
|
SctpSession |
create(com.sun.nio.sctp.SctpChannel channel)
Creates an SCTP session for a newly accepted connection.
|
protected abstract ISctpHandler |
createHandler(com.sun.nio.sctp.SctpChannel channel)
Creates an SCTP handler for a newly accepted connection.
|
void |
exception(com.sun.nio.sctp.SctpServerChannel channel,
Throwable exception)
Notifies about an exception caught during processing of a listening
channel.
|
void |
registered(com.sun.nio.sctp.SctpServerChannel channel)
Notifies about registration of a listening channel.
|
protected AbstractSctpSessionFactory()
public SctpSession create(com.sun.nio.sctp.SctpChannel channel)
createHandler(com.sun.nio.sctp.SctpChannel) method.create in interface ISctpSessionFactorychannel - the SCTP channel associated with the accepted connection.protected abstract ISctpHandler createHandler(com.sun.nio.sctp.SctpChannel channel)
channel - the SCTP channel associated with the accepted connection.create(com.sun.nio.sctp.SctpChannel) methodpublic void registered(com.sun.nio.sctp.SctpServerChannel channel)
ISctpSessionFactoryregistered in interface ISctpSessionFactorychannel - the listening channel that has been registeredpublic void closed(com.sun.nio.sctp.SctpServerChannel channel)
ISctpSessionFactoryclosed in interface ISctpSessionFactorychannel - the listening channel that has been closedpublic void exception(com.sun.nio.sctp.SctpServerChannel channel,
Throwable exception)
ISctpSessionFactoryexception in interface ISctpSessionFactorychannel - the listening channel for witch the exception was caughtexception - the exception that was caughtCopyright © 2017–2022 SNF4J.ORG. All rights reserved.