org.granite.client.messaging.channel
Class AbstractChannelFactory
java.lang.Object
org.granite.client.messaging.channel.AbstractChannelFactory
- All Implemented Interfaces:
- ChannelFactory
- Direct Known Subclasses:
- AMFChannelFactory, JMFChannelFactory
public abstract class AbstractChannelFactory
- extends Object
- implements ChannelFactory
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
contentType
protected final ContentType contentType
remotingTransport
protected Transport remotingTransport
messagingTransport
protected Transport messagingTransport
context
protected Object context
scanPackageNames
protected Set<String> scanPackageNames
aliasRegistry
protected AliasRegistry aliasRegistry
defaultTimeToLive
protected Long defaultTimeToLive
AbstractChannelFactory
protected AbstractChannelFactory(ContentType contentType)
AbstractChannelFactory
protected AbstractChannelFactory(ContentType contentType,
Object context)
AbstractChannelFactory
protected AbstractChannelFactory(ContentType contentType,
Object context,
Transport remotingTransport,
Transport messagingTransport)
getContext
public Object getContext()
- Specified by:
getContext in interface ChannelFactory
setContext
public void setContext(Object context)
- Specified by:
setContext in interface ChannelFactory
getContentType
public ContentType getContentType()
- Specified by:
getContentType in interface ChannelFactory
getDefaultTimeToLive
public long getDefaultTimeToLive()
- Specified by:
getDefaultTimeToLive in interface ChannelFactory
setDefaultTimeToLive
public void setDefaultTimeToLive(long defaultTimeToLive)
- Specified by:
setDefaultTimeToLive in interface ChannelFactory
setAliasRegistry
public void setAliasRegistry(AliasRegistry aliasRegistry)
- Specified by:
setAliasRegistry in interface ChannelFactory
getRemotingTransport
public Transport getRemotingTransport()
- Specified by:
getRemotingTransport in interface ChannelFactory
setRemotingTransport
public void setRemotingTransport(Transport remotingTransport)
- Specified by:
setRemotingTransport in interface ChannelFactory
getMessagingTransport
public Transport getMessagingTransport()
- Specified by:
getMessagingTransport in interface ChannelFactory
setMessagingTransport
public void setMessagingTransport(Transport messagingTransport)
- Specified by:
setMessagingTransport in interface ChannelFactory
setScanPackageNames
public void setScanPackageNames(String... packageNames)
setScanPackageNames
public void setScanPackageNames(Set<String> packageNames)
- Specified by:
setScanPackageNames in interface ChannelFactory
start
public void start()
- Specified by:
start in interface ChannelFactory
stop
public void stop()
- Specified by:
stop in interface ChannelFactory
stop
public void stop(boolean stopTransports)
- Specified by:
stop in interface ChannelFactory
newRemotingChannel
public RemotingChannel newRemotingChannel(String id,
String uri)
- Specified by:
newRemotingChannel in interface ChannelFactory
newRemotingChannel
public RemotingChannel newRemotingChannel(String id,
String uri,
int maxConcurrentRequests)
- Specified by:
newRemotingChannel in interface ChannelFactory
newMessagingChannel
public MessagingChannel newMessagingChannel(String id,
String uri)
- Specified by:
newMessagingChannel in interface ChannelFactory