org.apache.geronimo.network.protocol
Class BufferProtocol

java.lang.Object
  extended byorg.apache.geronimo.network.protocol.AbstractProtocol
      extended byorg.apache.geronimo.network.protocol.BufferProtocol
All Implemented Interfaces:
BootstrapCook, Cloneable, Protocol, Serializable

public class BufferProtocol
extends AbstractProtocol
implements BootstrapCook

Version:
$Revision: 1.7 $ $Date: 2004/08/01 13:03:42 $
See Also:
Serialized Form

Constructor Summary
BufferProtocol()
           
 
Method Summary
 Collection cook(ControlContext context)
           
 void drain()
           
 void flush()
           
 org.apache.geronimo.pool.ThreadPool getThreadPool()
           
 void sendDown(DownPacket packet)
           
 void sendUp(UpPacket packet)
           
 void setThreadPool(org.apache.geronimo.pool.ThreadPool threadPool)
           
 void setup()
           
 void teardown()
           
 
Methods inherited from class org.apache.geronimo.network.protocol.AbstractProtocol
clearLinks, cloneProtocol, getDownProtocol, getUpProtocol, setDownProtocol, setUpProtocol
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BufferProtocol

public BufferProtocol()
Method Detail

getThreadPool

public org.apache.geronimo.pool.ThreadPool getThreadPool()

setThreadPool

public void setThreadPool(org.apache.geronimo.pool.ThreadPool threadPool)

setup

public void setup()
           throws ProtocolException
Specified by:
setup in interface Protocol
Throws:
ProtocolException

drain

public void drain()
           throws ProtocolException
Specified by:
drain in interface Protocol
Throws:
ProtocolException

teardown

public void teardown()
              throws ProtocolException
Specified by:
teardown in interface Protocol
Throws:
ProtocolException

sendUp

public void sendUp(UpPacket packet)
            throws ProtocolException
Specified by:
sendUp in interface Protocol
Throws:
ProtocolException

sendDown

public void sendDown(DownPacket packet)
              throws ProtocolException
Specified by:
sendDown in interface Protocol
Throws:
ProtocolException

flush

public void flush()
           throws ProtocolException
Specified by:
flush in interface Protocol
Throws:
ProtocolException

cook

public Collection cook(ControlContext context)
Specified by:
cook in interface BootstrapCook


Copyright © 2003-2005 Apache Software Foundation. All Rights Reserved.