org.apache.mina.filter.buffer
Class IoBufferLazyInitializer
java.lang.Object
org.apache.mina.util.LazyInitializer<IoBuffer>
org.apache.mina.filter.buffer.IoBufferLazyInitializer
public class IoBufferLazyInitializer
- extends LazyInitializer<IoBuffer>
An LazyInitializer
implementation that initializes an
IoBuffer
only when needed.
- Since:
- MINA 2.0.0-M2
- Version:
- $Rev: 685705 $, $Date: 2008-08-14 00:16:46 +0200 (Do, 14 Aug 2008) $
- Author:
- The Apache MINA Project (dev@mina.apache.org)
Constructor Summary |
IoBufferLazyInitializer(int bufferSize)
Constructor which sets allocated buffer size to bufferSize . |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
IoBufferLazyInitializer
public IoBufferLazyInitializer(int bufferSize)
- Constructor which sets allocated buffer size to
bufferSize
.
- Parameters:
bufferSize
- the new buffer size
init
public IoBuffer init()
- Initializes the value.
- Specified by:
init
in class LazyInitializer<IoBuffer>
- Returns:
- the initialized value
Copyright © 2004-2009 Apache MINA Project. All Rights Reserved.