public class TensorFlowClusterGateway extends Object implements IgniteBiPredicate<UUID,Optional<TensorFlowCluster>>, AutoCloseable
| Constructor and Description |
|---|
TensorFlowClusterGateway(SerializableConsumer<TensorFlowClusterGateway> unsubscribeCb)
Constructs a new instance of TensorFlow cluster gateway.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
apply(UUID uuid,
Optional<TensorFlowCluster> cluster)
Predicate body.
|
void |
close() |
void |
subscribe(Consumer<Optional<TensorFlowCluster>> subscriber)
Subscribers the specified subscriber on the upstream events.
|
void |
unsubscribe(Consumer<Optional<TensorFlowCluster>> subscriber)
Unsubscribe the specified subscriber.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitandpublic TensorFlowClusterGateway(SerializableConsumer<TensorFlowClusterGateway> unsubscribeCb)
unsubscribeCb - Callback that will be called on unsubscribe.public void subscribe(Consumer<Optional<TensorFlowCluster>> subscriber)
subscriber - Subscriber.public void unsubscribe(Consumer<Optional<TensorFlowCluster>> subscriber)
subscriber - Subscriber.public boolean apply(UUID uuid, Optional<TensorFlowCluster> cluster)
apply in interface IgniteBiPredicate<UUID,Optional<TensorFlowCluster>>uuid - First parameter.cluster - Second parameter.public void close()
close in interface AutoCloseable
GridGain In-Memory Computing Platform : ver. 8.9.15 Release Date : December 3 2024