Package org.jgroups.protocols
Class PerDestinationBundler.SendBuffer
- java.lang.Object
 - 
- org.jgroups.protocols.PerDestinationBundler.SendBuffer
 
 
- 
- All Implemented Interfaces:
 java.lang.Runnable
- Enclosing class:
 - PerDestinationBundler
 
protected class PerDestinationBundler.SendBuffer extends java.lang.Object implements java.lang.Runnable 
- 
- 
Constructor Summary
Constructors Constructor Description SendBuffer(Address dest) 
- 
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidaddAndSendIfSizeExceeded(Message msg)protected voidaddMessage(Message msg, int size)java.lang.Stringdump()booleanisThreadAlive()protected intremoveAndSend(boolean execute_only_once)voidrun()protected booleansend(Message msg)protected voidsendBundledMessages()protected voidsendMessages(Address dest, Address src, java.util.List<Message> list)protected intsize()PerDestinationBundler.SendBufferstart()voidstop()java.lang.StringtoString() 
 - 
 
- 
- 
Constructor Detail
- 
SendBuffer
public SendBuffer(Address dest)
 
 - 
 
- 
Method Detail
- 
dump
public java.lang.String dump()
 
- 
isThreadAlive
public boolean isThreadAlive()
 
- 
start
public PerDestinationBundler.SendBuffer start()
 
- 
stop
public void stop()
 
- 
run
public void run()
- Specified by:
 runin interfacejava.lang.Runnable
 
- 
removeAndSend
protected int removeAndSend(boolean execute_only_once)
 
- 
addAndSendIfSizeExceeded
protected void addAndSendIfSizeExceeded(Message msg)
 
- 
addMessage
protected void addMessage(Message msg, int size)
 
- 
send
protected boolean send(Message msg) throws java.lang.Exception
- Throws:
 java.lang.Exception
 
- 
sendBundledMessages
protected void sendBundledMessages()
 
- 
toString
public java.lang.String toString()
- Overrides:
 toStringin classjava.lang.Object
 
- 
size
protected int size()
 
 - 
 
 -