Package io.deephaven.plugin.type
Class ObjectTypeClassBase<T>
java.lang.Object
io.deephaven.plugin.PluginBase
io.deephaven.plugin.type.ObjectTypeBase
io.deephaven.plugin.type.ObjectTypeClassBase<T>
- Type Parameters:
T- the class type
- All Implemented Interfaces:
Plugin,Registration,ObjectType
- Direct Known Subclasses:
ObjectTypeClassBase.FetchOnly
An implementation that uses strict
Class equality for the isType(Object) check.-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classAbstract base class for object type plugins that can only be fetched (and will not have later responses or accept later requests).Nested classes/interfaces inherited from interface io.deephaven.plugin.type.ObjectType
ObjectType.MessageStreamNested classes/interfaces inherited from interface io.deephaven.plugin.Plugin
Plugin.Visitor<T>Nested classes/interfaces inherited from interface io.deephaven.plugin.Registration
Registration.Callback -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionclazz()abstract ObjectType.MessageStreamclientConnectionImpl(T object, ObjectType.MessageStream connection) final ObjectType.MessageStreamcompatibleClientConnection(Object object, ObjectType.MessageStream connection) Signals creation of a client stream to the provided object.final booleanReturns true if, and only if, theobjectis compatible withthisobject type.final Stringname()The name of the object type.toString()Methods inherited from class io.deephaven.plugin.type.ObjectTypeBase
clientConnection, walkMethods inherited from class io.deephaven.plugin.PluginBase
registerIntoMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface io.deephaven.plugin.Plugin
registerInto
-
Constructor Details
-
ObjectTypeClassBase
-
-
Method Details
-
clazz
-
name
Description copied from interface:ObjectTypeThe name of the object type.- Returns:
- the name
-
isType
Description copied from interface:ObjectTypeReturns true if, and only if, theobjectis compatible withthisobject type.- Parameters:
object- the object- Returns:
- true if the
objectis compatible
-
compatibleClientConnection
public final ObjectType.MessageStream compatibleClientConnection(Object object, ObjectType.MessageStream connection) throws ObjectCommunicationException Description copied from class:ObjectTypeBaseSignals creation of a client stream to the provided object. The returned MessageStream implementation will be called with each received message from the client, and can call the provided connection instance to send messages as needed to the client.- Specified by:
compatibleClientConnectionin classObjectTypeBase- Parameters:
object- the object to create a connection forconnection- a stream to send objects to the client- Returns:
- a stream to receive objects from the client
- Throws:
ObjectCommunicationException- may throw an exception received fromObjectType.MessageStream.onData(ByteBuffer, Object...)calls
-
clientConnectionImpl
public abstract ObjectType.MessageStream clientConnectionImpl(T object, ObjectType.MessageStream connection) throws ObjectCommunicationException - Throws:
ObjectCommunicationException
-
toString
-