Class OperationChannel
java.lang.Object
org.infinispan.client.hotrod.impl.transport.netty.OperationChannel
- All Implemented Interfaces:
io.netty.util.internal.shaded.org.jctools.queues.MessagePassingQueue.Consumer<HotRodOperation<?>>
public class OperationChannel
extends Object
implements io.netty.util.internal.shaded.org.jctools.queues.MessagePassingQueue.Consumer<HotRodOperation<?>>
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionvoidaccept(HotRodOperation<?> operation) List<HotRodOperation<?>> close()static OperationChannelcreateAndStart(SocketAddress address, org.infinispan.client.hotrod.impl.transport.netty.ChannelInitializer newChannelInvoker, Function<String, ClientTopology> currentCacheTopologyFunction, BiConsumer<OperationChannel, Throwable> connectionFailureListener) voidforceSendOperation(HotRodOperation<?> operation) Allows sending a command directly without enqueuing.io.netty.channel.ChannelbooleanvoidQueue<HotRodOperation<?>> voidsendOperation(HotRodOperation<?> operation) voidtoString()
-
Field Details
-
OPERATION_CHANNEL_ATTRIBUTE_KEY
-
-
Method Details
-
createAndStart
public static OperationChannel createAndStart(SocketAddress address, org.infinispan.client.hotrod.impl.transport.netty.ChannelInitializer newChannelInvoker, Function<String, ClientTopology> currentCacheTopologyFunction, BiConsumer<OperationChannel, Throwable> connectionFailureListener) -
setCodec
-
isAcceptingRequests
public boolean isAcceptingRequests() -
markAcceptingRequests
public void markAcceptingRequests() -
forceSendOperation
Allows sending a command directly without enqueuing. Note that this method should only be invoked after the channel has been started and notified via theActivationHandler.ACTIVATION_EVENTand after all netty channel handlers have beenChannelInboundHandler.channelActive(ChannelHandlerContext).- Parameters:
operation- operation to send immediately, usually for login purposes
-
sendOperation
-
reconnect
-
getAddress
-
accept
- Specified by:
acceptin interfaceio.netty.util.internal.shaded.org.jctools.queues.MessagePassingQueue.Consumer<HotRodOperation<?>>
-
pendingChannelOperations
-
close
-
getChannel
public io.netty.channel.Channel getChannel() -
toString
-