Class IoBufferLazyInitializer
java.lang.Object
org.apache.mina.util.LazyInitializer<IoBuffer>
org.apache.mina.filter.buffer.IoBufferLazyInitializer
An
LazyInitializer implementation that initializes an
IoBuffer only when needed.- Since:
- MINA 2.0.0-M2
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate intThe buffer size allocated for each new session's buffer. -
Constructor Summary
ConstructorsConstructorDescriptionIoBufferLazyInitializer(int bufferSize) Constructor which sets allocated buffer size tobufferSize. -
Method Summary
Methods inherited from class LazyInitializer
get
-
Field Details
-
bufferSize
private int bufferSizeThe buffer size allocated for each new session's buffer.
-
-
Constructor Details
-
IoBufferLazyInitializer
public IoBufferLazyInitializer(int bufferSize) Constructor which sets allocated buffer size tobufferSize.- Parameters:
bufferSize- the new buffer size
-
-
Method Details
-
init
Initializes the value.- Specified by:
initin classLazyInitializer<IoBuffer>- Returns:
- the initialized value
-