com.hazelcast.client.impl.protocol.util
Class Flyweight
java.lang.Object
com.hazelcast.client.impl.protocol.util.Flyweight
- Direct Known Subclasses:
- ParameterFlyweight
public class Flyweight
- extends Object
Parent class for flyweight implementations in the messaging protocol.
Method Summary |
MutableDirectBuffer |
buffer()
|
void |
ensureCapacity(int requiredCapacity)
|
int |
offset()
|
void |
offset(int offset)
|
protected int |
uint16Get(int offset,
ByteOrder byteOrder)
|
protected void |
uint16Put(int offset,
int value,
ByteOrder byteOrder)
|
protected long |
uint32Get(int offset,
ByteOrder byteOrder)
|
protected void |
uint32Put(int offset,
long value,
ByteOrder byteOrder)
|
protected short |
uint8Get(int offset)
|
protected void |
uint8Put(int offset,
short value)
|
Flyweight |
wrap(byte[] buffer)
|
Flyweight |
wrap(byte[] buffer,
int offset,
int length)
|
Flyweight |
wrap(ByteBuffer buffer)
|
Flyweight |
wrap(ByteBuffer buffer,
int offset)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
INITIAL_BUFFER_CAPACITY
public static final int INITIAL_BUFFER_CAPACITY
- See Also:
- Constant Field Values
buffer
protected final MutableDirectBuffer buffer
Flyweight
protected Flyweight()
Flyweight
protected Flyweight(byte[] buffer,
int offset,
int length)
Flyweight
public Flyweight(MutableDirectBuffer buffer,
int offset)
wrap
public Flyweight wrap(byte[] buffer)
wrap
public Flyweight wrap(byte[] buffer,
int offset,
int length)
wrap
public Flyweight wrap(ByteBuffer buffer)
wrap
public Flyweight wrap(ByteBuffer buffer,
int offset)
buffer
public MutableDirectBuffer buffer()
offset
public int offset()
offset
public void offset(int offset)
uint8Get
protected short uint8Get(int offset)
uint8Put
protected void uint8Put(int offset,
short value)
uint16Get
protected int uint16Get(int offset,
ByteOrder byteOrder)
uint16Put
protected void uint16Put(int offset,
int value,
ByteOrder byteOrder)
uint32Get
protected long uint32Get(int offset,
ByteOrder byteOrder)
uint32Put
protected void uint32Put(int offset,
long value,
ByteOrder byteOrder)
ensureCapacity
public void ensureCapacity(int requiredCapacity)
Copyright © 2015 Hazelcast, Inc.. All Rights Reserved.