public interface SessionAcceptor extends Closeable
Environment| Modifier and Type | Method and Description |
|---|---|
void |
accept(SessionListener listener)
Returns immediately and calls listener asynchronously, but no more than
once.
|
void |
acceptAll(Object shared)
Returns immediately and starts automatically accepting all sessions
asynchronously, sending a shared object.
|
void |
close()
Prevents new sessions from being accepted and closes all existing
sessions created from this acceptor.
|
Object |
getLocalAddress() |
void acceptAll(Object shared)
accept
method may be called at any time to switch to manual session acceptance.shared - shared remote or serializable object to send to accepted
sessionsvoid accept(SessionListener listener)
acceptAll method may be called at any
time to switch to automatic session acceptance.Object getLocalAddress()
void close()
throws IOException
close in interface AutoCloseableclose in interface CloseableIOExceptionCopyright © 2006–2015 Cojen. All rights reserved.