Interface ComConnectionAcceptor<C>
- Type Parameters:
C
- the communication layer type
- All Known Implementing Classes:
ComConnectionAcceptor.Default
public interface ComConnectionAcceptor<C>
Logic to greet/authenticate the client, exchange metadata, create a
ComChannel
instance.
Potentially in another, maybe even dedicated thread.-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static class
ComConnectionAcceptor.Default<C>
-
Method Summary
Modifier and Type Method Description void
acceptConnection(C connection, ComHost<C> parent)
static <C> ComConnectionAcceptorCreator<C>
Creator()
static <C> ComConnectionAcceptor<C>
New(ComProtocolProvider<C> protocolProvider, ComProtocolStringConverter protocolStringConverter, ComConnectionHandler<C> connectionHandler, ComPersistenceAdaptor<C> persistenceAdaptor, ComHostChannelAcceptor<C> channelAcceptor, ComHostExceptionHandler<C> exceptionHandler, ComPeerIdentifier peerIdentifier)
ComProtocolProvider<C>
protocolProvider()
-
Method Details
-
protocolProvider
ComProtocolProvider<C> protocolProvider() -
acceptConnection
-
Creator
-
New
static <C> ComConnectionAcceptor<C> New(ComProtocolProvider<C> protocolProvider, ComProtocolStringConverter protocolStringConverter, ComConnectionHandler<C> connectionHandler, ComPersistenceAdaptor<C> persistenceAdaptor, ComHostChannelAcceptor<C> channelAcceptor, ComHostExceptionHandler<C> exceptionHandler, ComPeerIdentifier peerIdentifier)
-