Module 

Class AbstractMessageSinkConduit<D extends MessageSinkConduit>

All Implemented Interfaces:
Conduit, MessageSinkConduit, SinkConduit
Direct Known Subclasses:
SaslUnwrappingConduit, SaslWrappingConduit

public abstract class AbstractMessageSinkConduit<D extends MessageSinkConduit> extends AbstractSinkConduit<D> implements MessageSinkConduit
An abstract base class for filtering message sink conduits.
Author:
David M. Lloyd
  • Constructor Details

    • AbstractMessageSinkConduit

      protected AbstractMessageSinkConduit(D next)
      Construct a new instance.
      Parameters:
      next - the delegate conduit to set
  • Method Details

    • send

      public boolean send(ByteBuffer src) throws IOException
      Description copied from interface: MessageSinkConduit
      Send a complete message.
      Specified by:
      send in interface MessageSinkConduit
      Parameters:
      src - the message to send
      Returns:
      the result of the send operation; true if the message was sent, or false if it would block
      Throws:
      IOException - if an I/O error occurs
    • send

      public boolean send(ByteBuffer[] srcs, int offs, int len) throws IOException
      Description copied from interface: MessageSinkConduit
      Send a complete message.
      Specified by:
      send in interface MessageSinkConduit
      Parameters:
      srcs - the buffers holding the message to send
      offs - the offset into the buffer array of the first buffer
      len - the number of buffers that contain data to send
      Returns:
      the result of the send operation; true if the message was sent, or false if it would block
      Throws:
      IOException - if an I/O error occurs
    • sendFinal

      public boolean sendFinal(ByteBuffer[] srcs, int offs, int len) throws IOException
      Description copied from interface: MessageSinkConduit
      Send a complete message. If the message is successfully sent then the sink will have its writes terminated.
      Specified by:
      sendFinal in interface MessageSinkConduit
      Parameters:
      srcs - the buffers holding the message to send
      offs - the offset into the buffer array of the first buffer
      len - the number of buffers that contain data to send
      Returns:
      the result of the send operation; true if the message was sent, or false if it would block
      Throws:
      IOException - if an I/O error occurs
    • sendFinal

      public boolean sendFinal(ByteBuffer src) throws IOException
      Description copied from interface: MessageSinkConduit
      Send a complete message. If the message is successfully sent then the sink will have its writes terminated.
      Specified by:
      sendFinal in interface MessageSinkConduit
      Parameters:
      src - the message to send
      Returns:
      the result of the send operation; true if the message was sent, or false if it would block
      Throws:
      IOException - if an I/O error occurs