org.activemq.transport.multicast
Class MulticastTransportChannel
java.lang.Object
org.activemq.transport.TransportChannelSupport
org.activemq.transport.udp.UdpTransportChannel
org.activemq.transport.multicast.MulticastTransportChannel
- All Implemented Interfaces:
- java.lang.Runnable, Service, TransportChannel
- public class MulticastTransportChannel
- extends UdpTransportChannel
A multicast implementation of a TransportChannel
- Version:
- $Revision: 1.1.1.1 $
Methods inherited from class org.activemq.transport.TransportChannelSupport |
addTransportStatusEventListener, asyncSendWithReceipt, doAsyncSend, doConsumePacket, doConsumePacket, doesSupportMessageCompression, doesSupportMessageFragmentation, doesSupportWireFormatVersioning, doHandleReceipt, doHandleWireFormat, fireStatusEvent, fireStatusEvent, getClientID, getEmbeddedBrokerConnector, getExceptionListener, getLastReceiptTimestamp, getPacketListener, getTransportChannelListener, getWireFormat, isCachingEnabled, isNoDelay, isPendingStop, isServerSide, isTransportConnected, isUsedInternally, onAsyncException, removeTransportStatusEventListener, requiresEmbeddedBroker, send, send, setCachingEnabled, setClientID, setExceptionListener, setNoDelay, setPacketListener, setPendingStop, setServerSide, setTransportChannelListener, setTransportConnected, setUsedInternally, setWireFormat, stopExecutor |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
MulticastTransportChannel
public MulticastTransportChannel(WireFormat wireFormat,
java.net.URI remoteLocation)
throws javax.jms.JMSException
- Connect to a remote Node - e.g. a Broker
- Parameters:
wireFormat
- remoteLocation
-
- Throws:
javax.jms.JMSException
MulticastTransportChannel
public MulticastTransportChannel(WireFormat wireFormat,
java.net.MulticastSocket socket)
throws javax.jms.JMSException
- Parameters:
wireFormat
- socket
-
- Throws:
javax.jms.JMSException
isMulticast
public boolean isMulticast()
- Specified by:
isMulticast
in interface TransportChannel
- Overrides:
isMulticast
in class UdpTransportChannel
- Returns:
- true
toString
public java.lang.String toString()
- pretty print for object
- Overrides:
toString
in class UdpTransportChannel
- Returns:
- String representation of this object
getTimeToLive
public int getTimeToLive()
- Returns:
- Returns the timeToLive.
setTimeToLive
public void setTimeToLive(int timeToLive)
throws java.io.IOException
- Parameters:
timeToLive
- The timeToLive to set.
- Throws:
java.io.IOException
connect
protected void connect()
throws java.io.IOException
- Overrides:
connect
in class UdpTransportChannel
- Throws:
java.io.IOException
createSocket
protected java.net.DatagramSocket createSocket(int port)
throws java.io.IOException
- Overrides:
createSocket
in class UdpTransportChannel
- Throws:
java.io.IOException
Copyright © 2004-2005 Protique, Ltd.. All Rights Reserved.