Class PacketQueueImpl
java.lang.Object
com.tenio.core.network.entity.packet.implement.PacketQueueImpl
- All Implemented Interfaces:
PacketQueue
The implementation for packet queue.
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionvoid
clear()
int
float
int
getSize()
boolean
isEmpty()
boolean
isFull()
static PacketQueueImpl
peek()
void
void
setMaxSize
(int maxSize) void
setPacketQueuePolicy
(PacketQueuePolicy packetQueuePolicy) take()
toString()
-
Method Details
-
newInstance
-
peek
- Specified by:
peek
in interfacePacketQueue
-
take
- Specified by:
take
in interfacePacketQueue
-
isEmpty
public boolean isEmpty()- Specified by:
isEmpty
in interfacePacketQueue
-
isFull
public boolean isFull()- Specified by:
isFull
in interfacePacketQueue
-
getSize
public int getSize()- Specified by:
getSize
in interfacePacketQueue
-
getMaxSize
public int getMaxSize()- Specified by:
getMaxSize
in interfacePacketQueue
-
setMaxSize
public void setMaxSize(int maxSize) - Specified by:
setMaxSize
in interfacePacketQueue
-
setPacketQueuePolicy
- Specified by:
setPacketQueuePolicy
in interfacePacketQueue
-
getPercentageUsed
public float getPercentageUsed()- Specified by:
getPercentageUsed
in interfacePacketQueue
-
put
- Specified by:
put
in interfacePacketQueue
-
clear
public void clear()- Specified by:
clear
in interfacePacketQueue
-
toString
-