Package org.infinispan.server.jgroups
Class ForkChannelFactory
- java.lang.Object
-
- org.infinispan.server.jgroups.ForkChannelFactory
-
- All Implemented Interfaces:
ChannelFactory,ChannelFactory
public class ForkChannelFactory extends Object implements ChannelFactory
Factory for creating forked channels.- Author:
- Paul Ferraro
-
-
Constructor Summary
Constructors Constructor Description ForkChannelFactory(org.jgroups.JChannel channel, ChannelFactory parentFactory, List<ProtocolConfiguration> protocols)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.jgroups.JChannelcreateChannel(String id)Creates a JGroups channelProtocolStackConfigurationgetProtocolStackConfiguration()Returns the protocol stack configuration of this channel factory.booleanisUnknownForkResponse(ByteBuffer response)Determines whether or not the specified message response indicates the fork stack or fork channel required to handle a request does not exist on the recipient node.
-
-
-
Constructor Detail
-
ForkChannelFactory
public ForkChannelFactory(org.jgroups.JChannel channel, ChannelFactory parentFactory, List<ProtocolConfiguration> protocols)
-
-
Method Detail
-
createChannel
public org.jgroups.JChannel createChannel(String id) throws Exception
Description copied from interface:ChannelFactoryCreates a JGroups channel- Specified by:
createChannelin interfaceChannelFactory- Parameters:
id- the unique identifier of this channel- Returns:
- a JGroups channel
- Throws:
Exception- if there was a failure setting up the protocol stack
-
getProtocolStackConfiguration
public ProtocolStackConfiguration getProtocolStackConfiguration()
Description copied from interface:ChannelFactoryReturns the protocol stack configuration of this channel factory.- Specified by:
getProtocolStackConfigurationin interfaceChannelFactory- Returns:
- the protocol stack configuration of this channel factory
-
isUnknownForkResponse
public boolean isUnknownForkResponse(ByteBuffer response)
Description copied from interface:ChannelFactoryDetermines whether or not the specified message response indicates the fork stack or fork channel required to handle a request does not exist on the recipient node.- Specified by:
isUnknownForkResponsein interfaceChannelFactory- Parameters:
response- a message response- Returns:
- true, if the response indicates a missing fork stack or channel.
-
-