Skip to main content
aboutsummaryrefslogtreecommitdiffstats
blob: 6b31450a9b2ea0f49a9ca0864a9af404d11072e4 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
package org.eclipse.net4j.transport;

/**
 * @author Eike Stepper
 */
public interface BufferHandler
{
  /**
   * Handles a {@link Buffer} and optionally releases it. The implementor of
   * this method takes over the ownership of the buffer. Care must be taken to
   * properly {@link Buffer#release() release} the buffer if the ownership is
   * not explicitely passed to some further party.
   * <p>
   */
  public void handleBuffer(Buffer buffer);
}

Back to the top