getUnackedSize

needsSending

getLifetime

acked

Ack all the fragments in the ack list. As a side effect, if there are
still unacked fragments, the 'next send' time will be updated under the
assumption that that all of the packets within a volley would reach the
peer within that ack frequency (2-400ms).

Returns:

true if the message was completely ACKed

getNextSendTime

public long getNextSendTime()

setNextSendTime

public void setNextSendTime(long when)

getMaxSends

public int getMaxSends()

getPushCount

public int getPushCount()

push

public void push()

note that we have pushed the message fragments

isFragmented

public boolean isFragmented()

fragment

public void fragment(int fragmentSize)

Prepare the message for fragmented delivery, using no more than
fragmentSize bytes per fragment.

getFragmentCount

public int getFragmentCount()

how many fragments in the message

getFragmentSize

public int getFragmentSize()

shouldSend

public boolean shouldSend(int fragmentNum)

should we continue sending this fragment?

fragmentSize

public int fragmentSize(int fragmentNum)

writeFragment

public int writeFragment(byte[] out,
int outOffset,
int fragmentNum)

Write a part of the the message onto the specified buffer.
See releaseResources() above for synchhronization information.