org.eclipse.net4j.buffer
Interface IBufferHandler

All Known Subinterfaces:
IChannel, IJVMChannel, InternalChannel, IProtocol<INFRA_STRUCTURE>, ISignalProtocol<INFRA_STRUCTURE>
All Known Implementing Classes:
BufferInputStream, Channel, ChannelInputStream, HeartBeatProtocol, HeartBeatProtocol.Server, Protocol, SignalProtocol

public interface IBufferHandler

Provides clients with the ability to pass IBuffers in for further buffer handling.


Method Summary
 void handleBuffer(IBuffer buffer)
          Handles an IBuffer and optionally releases it.
 

Method Detail

handleBuffer

void handleBuffer(IBuffer buffer)
Handles an IBuffer and optionally releases it. The implementor of this method takes over the ownership of the buffer. Care must be taken to properly release the buffer if the ownership is not explicitely passed to some further party.

Parameters:
buffer - The buffer to be handled and otionally released.


Copyright (c) 2004 - 2012 Eike Stepper (Berlin, Germany) and others.