Package org.ow2.joram.mom.amqp
Class AMQPConnectionListener.NetServerOut
- java.lang.Object
-
- fr.dyade.aaa.common.Daemon
-
- org.ow2.joram.mom.amqp.AMQPConnectionListener.NetServerOut
-
- All Implemented Interfaces:
Runnable
- Enclosing class:
- AMQPConnectionListener
final class AMQPConnectionListener.NetServerOut extends Daemon
-
-
Constructor Summary
Constructors Constructor Description NetServerOut(String name)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidclose()Releases any resources attached to this daemon.voidrun()protected voidshutdown()Interrupts a thread that waits for long periods.private voidwriteToPeer(Frame frame)-
Methods inherited from class fr.dyade.aaa.common.Daemon
finish, getName, interrupt, isCurrentThread, isRunning, setDaemon, setName, setPriority, setThreadGroup, start, stop, toString
-
-
-
-
Field Detail
-
os
private OutputStream os
-
-
Constructor Detail
-
NetServerOut
NetServerOut(String name)
-
-
Method Detail
-
close
protected void close()
Description copied from class:DaemonReleases any resources attached to this daemon. Be careful, its method should be called more than one time.
-
shutdown
protected void shutdown()
Description copied from class:DaemonInterrupts a thread that waits for long periods. In some cases, we must use application specific tricks. For example, if a thread is waiting on a known socket, we have to close the socket to cause the thread to return immediately. Unfortunately, there really isn't any technique that works in general.
-
writeToPeer
private void writeToPeer(Frame frame) throws IOException
- Throws:
IOException
-
run
public void run()
-
-