public abstract class ClientAcceptor extends Object
Constructor and Description |
---|
ClientAcceptor(ProtocolContext protocolContext)
Construct an acceptor with a protocol context.
|
Modifier and Type | Method and Description |
---|---|
boolean |
finishAccept(SelectionKey key)
Called by the framework when the OP_ACCEPT event is fired for this
acceptor.
|
abstract boolean |
finishAccept(SelectionKey key,
ProtocolContext protocolContext)
Complete the accept operation.
|
abstract void |
stopAccepting()
Stop accepting clients
|
public ClientAcceptor(ProtocolContext protocolContext)
protocolContext
- ProtocolContextpublic boolean finishAccept(SelectionKey key)
key
- SelectionKeypublic abstract boolean finishAccept(SelectionKey key, ProtocolContext protocolContext)
key
- SelectionKeyprotocolContext
- ProtocolContextpublic abstract void stopAccepting() throws IOException
IOException
Copyright © 2024. All rights reserved.