Class NamedCacheProxyProtocol.ChannelStub
java.lang.Object
com.tangosol.coherence.Component
com.tangosol.coherence.component.Net
com.tangosol.coherence.component.net.Extend
com.tangosol.coherence.component.net.extend.Channel
com.oracle.coherence.grpc.proxy.common.cache.NamedCacheProxyProtocol.ChannelStub
- All Implemented Interfaces:
PofContext,PofSerializer,Serializer,com.tangosol.net.messaging.Channel,ObjectInputValidation,Serializable,Comparable
- Enclosing class:
NamedCacheProxyProtocol
protected class NamedCacheProxyProtocol.ChannelStub
extends com.tangosol.coherence.component.net.extend.Channel
A stub of an Extend
Channel used to handle event messages.- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class com.tangosol.coherence.component.net.extend.Channel
com.tangosol.coherence.component.net.extend.Channel.MessageActionNested classes/interfaces inherited from interface com.tangosol.net.messaging.Channel
com.tangosol.net.messaging.Channel.Receiver -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final intThe cache identifier.protected final booleantrueif the client's serializer is compatible with the underlying cache service serializer. -
Constructor Summary
ConstructorsConstructorDescriptionChannelStub(int cacheId, boolean fCompatible) Create theNamedCacheProxyProtocol.ChannelStub. -
Method Summary
Modifier and TypeMethodDescriptioncom.tangosol.net.messaging.ConnectionReturn the Connection that created this Channel.com.tangosol.coherence.component.util.daemon.queueProcessor.service.PeerbooleanReturntrueif the client's serializer is compatible with the underlying cache service serializer.voidsend(com.tangosol.net.messaging.Message message) Asynchronously send a Message to the peer endpoint through this Channel over the underlying Connection.Methods inherited from class com.tangosol.coherence.component.net.extend.Channel
__init, __initPrivate, assertOpen, calculateRequestTimeout, close, close, closeInternal, createMessage, deserialize, deserialize, execute, gateClose, gateEnter, gateExit, gateOpen, generateRequestId, get_ChildClasses, get_CLASS, get_Instance, getAccessAdapter, getAttribute, getAttributeMap, getAttributes, getClass, getClassName, getCloseThrowable, getDescription, getEmptySubject, getId, getMessageFactory, getPofSerializer, getReceiver, getRequest, getRequestArray, getSerializer, getSubject, getThreadGate, getUserTypeIdentifier, getUserTypeIdentifier, getUserTypeIdentifier, isActiveThread, isCloseNotify, isCloseOnExit, isLegacyPromotion, isOpen, isSecureContext, isUserType, isUserType, isUserType, onInit, onRequestCompleted, open, openInternal, post, receive, registerRequest, removeAttribute, request, request, send, serialize, serialize, setAccessAdapter, setAttribute, setAttributeMap, setCloseNotify, setCloseOnExit, setCloseThrowable, setConnection, setEmptySubject, setId, setLegacyPromotion, setMessageFactory, setOpen, setReceiver, setRequestArray, setSecureContext, setSerializer, setSubject, setThreadGate, unregisterRequestMethods inherited from class com.tangosol.coherence.component.net.Extend
ensureRuntimeException, ensureRuntimeException, toStringMethods inherited from class com.tangosol.coherence.Component
_addChild, _assert, _assert, _assertFailed, _beep, _enumChildNames, _enumChildren, _enumChildrenInOrder, _findAncestor, _findChild, _findChild, _findChildClass, _findFeed, _findName, _findNextPosition, _findPreviousPosition, _imports, _init, _isAncestorOf, _isTraceEnabled, _linkChild, _makeApplication, _makeRemoteInstance, _makeRemoteObject, _newChild, _newInstance, _positionOf, _removeAllChildren, _removeChild, _trace, _trace, _trace, _trace, _unlinkChild, applyConfig, compareTo, get_DefaultRemoteName, get_Feed, get_Name, get_Order, get_Parent, get_Position, get_Reference, get_RemoteContext, get_RemoteName, get_RemoteObject, get_Sink, get_StackTrace, get_StateAux, getStackTrace, is_Constructed, is_Deserialized, onAdd, onRemove, saveConfig, set_Constructed, set_Feed, set_Order, set_Reference, set_Sink, set_StateAux, validateObjectMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.tangosol.io.pof.PofContext
isPreferJavaTimeMethods inherited from interface com.tangosol.io.Serializer
deserialize, getName
-
Field Details
-
m_cacheId
protected final int m_cacheIdThe cache identifier. -
m_fCompatible
protected final boolean m_fCompatibletrueif the client's serializer is compatible with the underlying cache service serializer.
-
-
Constructor Details
-
ChannelStub
public ChannelStub(int cacheId, boolean fCompatible) Create theNamedCacheProxyProtocol.ChannelStub.- Parameters:
cacheId- the cache identifierfCompatible-trueif the client's serializer is compatible with the underlying cache service serializer
-
-
Method Details
-
send
public void send(com.tangosol.net.messaging.Message message) Description copied from interface:com.tangosol.net.messaging.ChannelAsynchronously send a Message to the peer endpoint through this Channel over the underlying Connection.- Specified by:
sendin interfacecom.tangosol.net.messaging.Channel- Overrides:
sendin classcom.tangosol.coherence.component.net.extend.Channel- Parameters:
message- the Message to send
-
getConnection
public com.tangosol.net.messaging.Connection getConnection()Description copied from interface:com.tangosol.net.messaging.ChannelReturn the Connection that created this Channel.- Specified by:
getConnectionin interfacecom.tangosol.net.messaging.Channel- Overrides:
getConnectionin classcom.tangosol.coherence.component.net.extend.Channel- Returns:
- the Connection that created this Channel
-
getConnectionManager
public com.tangosol.coherence.component.util.daemon.queueProcessor.service.Peer getConnectionManager()- Overrides:
getConnectionManagerin classcom.tangosol.coherence.component.net.extend.Channel
-
isSerializerCompatible
public boolean isSerializerCompatible()Returntrueif the client's serializer is compatible with the underlying cache service serializer.- Returns:
trueif the client's serializer is compatible with the underlying cache service serializer
-