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.
|
public 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
Follow @ApacheIgnite
Ignite Database and Caching Platform : ver. 2.7.2 Release Date : February 6 2019