Liferay 6.2.0

com.liferay.portal.kernel.nio.intraband
Interface Intraband

All Known Implementing Classes:
BaseIntraband, ExecutorIntraband, SelectorIntraband

public interface Intraband


Method Summary
abstract  void close()
           
abstract  DatagramReceiveHandler[] getDatagramReceiveHandlers()
           
abstract  boolean isOpen()
           
abstract  RegistrationReference registerChannel(Channel channel)
           
abstract  RegistrationReference registerChannel(ScatteringByteChannel scatteringByteChannel, GatheringByteChannel gatheringByteChannel)
           
abstract  DatagramReceiveHandler registerDatagramReceiveHandler(byte type, DatagramReceiveHandler datagramReceiveHandler)
           
abstract  void sendDatagram(RegistrationReference registrationReference, Datagram datagram)
           
abstract
<A> void
sendDatagram(RegistrationReference registrationReference, Datagram datagram, A attachment, EnumSet<CompletionHandler.CompletionType> completionTypes, CompletionHandler<A> completionHandler)
           
abstract
<A> void
sendDatagram(RegistrationReference registrationReference, Datagram datagram, A attachment, EnumSet<CompletionHandler.CompletionType> completionTypes, CompletionHandler<A> completionHandler, long timeout, TimeUnit timeUnit)
           
abstract  Datagram sendSyncDatagram(RegistrationReference registrationReference, Datagram datagram)
           
abstract  Datagram sendSyncDatagram(RegistrationReference registrationReference, Datagram datagram, long timeout, TimeUnit timeUnit)
           
abstract  DatagramReceiveHandler unregisterDatagramReceiveHandler(byte type)
           
 

Method Detail

close

void close()
           throws InterruptedException,
                  IOException
Throws:
InterruptedException
IOException

getDatagramReceiveHandlers

DatagramReceiveHandler[] getDatagramReceiveHandlers()

isOpen

boolean isOpen()

registerChannel

RegistrationReference registerChannel(Channel channel)
                                      throws IOException
Throws:
IOException

registerChannel

RegistrationReference registerChannel(ScatteringByteChannel scatteringByteChannel,
                                      GatheringByteChannel gatheringByteChannel)
                                      throws IOException
Throws:
IOException

registerDatagramReceiveHandler

DatagramReceiveHandler registerDatagramReceiveHandler(byte type,
                                                      DatagramReceiveHandler datagramReceiveHandler)

sendDatagram

void sendDatagram(RegistrationReference registrationReference,
                  Datagram datagram)

sendDatagram

<A> void sendDatagram(RegistrationReference registrationReference,
                      Datagram datagram,
                      A attachment,
                      EnumSet<CompletionHandler.CompletionType> completionTypes,
                      CompletionHandler<A> completionHandler)

sendDatagram

<A> void sendDatagram(RegistrationReference registrationReference,
                      Datagram datagram,
                      A attachment,
                      EnumSet<CompletionHandler.CompletionType> completionTypes,
                      CompletionHandler<A> completionHandler,
                      long timeout,
                      TimeUnit timeUnit)

sendSyncDatagram

Datagram sendSyncDatagram(RegistrationReference registrationReference,
                          Datagram datagram)
                          throws InterruptedException,
                                 IOException,
                                 TimeoutException
Throws:
InterruptedException
IOException
TimeoutException

sendSyncDatagram

Datagram sendSyncDatagram(RegistrationReference registrationReference,
                          Datagram datagram,
                          long timeout,
                          TimeUnit timeUnit)
                          throws InterruptedException,
                                 IOException,
                                 TimeoutException
Throws:
InterruptedException
IOException
TimeoutException

unregisterDatagramReceiveHandler

DatagramReceiveHandler unregisterDatagramReceiveHandler(byte type)

Liferay 6.2.0