public interface Intraband
Modifier and Type | Method and Description |
---|---|
void |
close() |
DatagramReceiveHandler[] |
getDatagramReceiveHandlers() |
boolean |
isOpen() |
RegistrationReference |
registerChannel(Channel channel) |
RegistrationReference |
registerChannel(ScatteringByteChannel scatteringByteChannel,
GatheringByteChannel gatheringByteChannel) |
DatagramReceiveHandler |
registerDatagramReceiveHandler(byte type,
DatagramReceiveHandler datagramReceiveHandler) |
void |
sendDatagram(RegistrationReference registrationReference,
Datagram datagram) |
<A> void |
sendDatagram(RegistrationReference registrationReference,
Datagram datagram,
A attachment,
EnumSet<CompletionHandler.CompletionType> completionTypes,
CompletionHandler<A> completionHandler) |
<A> void |
sendDatagram(RegistrationReference registrationReference,
Datagram datagram,
A attachment,
EnumSet<CompletionHandler.CompletionType> completionTypes,
CompletionHandler<A> completionHandler,
long timeout,
TimeUnit timeUnit) |
Datagram |
sendSyncDatagram(RegistrationReference registrationReference,
Datagram datagram) |
Datagram |
sendSyncDatagram(RegistrationReference registrationReference,
Datagram datagram,
long timeout,
TimeUnit timeUnit) |
DatagramReceiveHandler |
unregisterDatagramReceiveHandler(byte type) |
void close() throws InterruptedException, IOException
InterruptedException
IOException
DatagramReceiveHandler[] getDatagramReceiveHandlers()
boolean isOpen()
RegistrationReference registerChannel(Channel channel) throws IOException
IOException
RegistrationReference registerChannel(ScatteringByteChannel scatteringByteChannel, GatheringByteChannel gatheringByteChannel) throws IOException
IOException
DatagramReceiveHandler registerDatagramReceiveHandler(byte type, DatagramReceiveHandler datagramReceiveHandler)
void sendDatagram(RegistrationReference registrationReference, Datagram datagram)
<A> void sendDatagram(RegistrationReference registrationReference, Datagram datagram, A attachment, EnumSet<CompletionHandler.CompletionType> completionTypes, CompletionHandler<A> completionHandler)
<A> void sendDatagram(RegistrationReference registrationReference, Datagram datagram, A attachment, EnumSet<CompletionHandler.CompletionType> completionTypes, CompletionHandler<A> completionHandler, long timeout, TimeUnit timeUnit)
Datagram sendSyncDatagram(RegistrationReference registrationReference, Datagram datagram) throws InterruptedException, IOException, TimeoutException
InterruptedException
IOException
TimeoutException
Datagram sendSyncDatagram(RegistrationReference registrationReference, Datagram datagram, long timeout, TimeUnit timeUnit) throws InterruptedException, IOException, TimeoutException
InterruptedException
IOException
TimeoutException
DatagramReceiveHandler unregisterDatagramReceiveHandler(byte type)