Package herddb.network.netty
Class LocalVMChannel
- java.lang.Object
-
- herddb.network.Channel
-
- herddb.network.netty.AbstractChannel
-
- herddb.network.netty.LocalVMChannel
-
- All Implemented Interfaces:
AutoCloseable,Comparable<LocalVMChannel>
public class LocalVMChannel extends AbstractChannel implements Comparable<LocalVMChannel>
Short circuit implementation ofChannelfor in-VM communications.- Author:
- eolivelli
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class herddb.network.Channel
Channel.PduCallback
-
-
Field Summary
-
Fields inherited from class herddb.network.netty.AbstractChannel
ADDRESS_JVM_LOCAL, ioErrors
-
Fields inherited from class herddb.network.Channel
messagesReceiver
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intcompareTo(LocalVMChannel o)protected StringdescribeSocket()protected voiddoClose()booleanequals(Object obj)ChannelgetServerSideChannel()inthashCode()booleanisLocalChannel()booleanisValid()voidsendOneWayMessage(io.netty.buffer.ByteBuf message, SendResultCallback callback)-
Methods inherited from class herddb.network.netty.AbstractChannel
channelIdle, close, directProcessPdu, getId, getRemoteAddress, isClosed, pduReceived, pendingCallbacks, sendReplyMessage, sendRequestWithAsyncReply
-
Methods inherited from class herddb.network.Channel
generateRequestId, getMessagesReceiver, getName, sendMessageWithPduReply, setMessagesReceiver
-
-
-
-
Method Detail
-
getServerSideChannel
public Channel getServerSideChannel()
-
sendOneWayMessage
public void sendOneWayMessage(io.netty.buffer.ByteBuf message, SendResultCallback callback)- Specified by:
sendOneWayMessagein classChannel
-
describeSocket
protected String describeSocket()
- Specified by:
describeSocketin classAbstractChannel
-
doClose
protected void doClose()
- Specified by:
doClosein classAbstractChannel
-
isLocalChannel
public boolean isLocalChannel()
- Specified by:
isLocalChannelin classChannel
-
compareTo
public int compareTo(LocalVMChannel o)
- Specified by:
compareToin interfaceComparable<LocalVMChannel>
-
-