Record Class FileSystemApi.NodeSubscription
java.lang.Object
java.lang.Record
nl.bimbase.bimworks.client.apis.FileSystemApi.NodeSubscription
- All Implemented Interfaces:
AutoCloseable
- Enclosing class:
FileSystemApi
public static record FileSystemApi.NodeSubscription(com.fasterxml.jackson.databind.node.ObjectNode snapshot, AutoCloseable handle)
extends Record
implements AutoCloseable
An open interactive listing: the initial snapshot plus a handle that stops the pushes.
-
Constructor Summary
ConstructorsConstructorDescriptionNodeSubscription(com.fasterxml.jackson.databind.node.ObjectNode snapshot, AutoCloseable handle) Creates an instance of aNodeSubscriptionrecord class. -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()final booleanIndicates whether some other object is "equal to" this one.handle()Returns the value of thehandlerecord component.final inthashCode()Returns a hash code value for this object.com.fasterxml.jackson.databind.node.ObjectNodesnapshot()Returns the value of thesnapshotrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
NodeSubscription
public NodeSubscription(com.fasterxml.jackson.databind.node.ObjectNode snapshot, AutoCloseable handle) Creates an instance of aNodeSubscriptionrecord class.- Parameters:
snapshot- the value for thesnapshotrecord componenthandle- the value for thehandlerecord component
-
-
Method Details
-
close
- Specified by:
closein interfaceAutoCloseable- Throws:
Exception
-
toString
-
hashCode
-
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared withObjects::equals(Object,Object). -
snapshot
public com.fasterxml.jackson.databind.node.ObjectNode snapshot()Returns the value of thesnapshotrecord component.- Returns:
- the value of the
snapshotrecord component
-
handle
Returns the value of thehandlerecord component.- Returns:
- the value of the
handlerecord component
-