Uses of Interface
org.nustaq.kontraktor.IPromise
Packages that use IPromise
Package
Description
-
Uses of IPromise in org.nustaq.kontraktor
Classes in org.nustaq.kontraktor that implement IPromiseMethods in org.nustaq.kontraktor that return IPromiseModifier and TypeMethodDescriptionsimilar to es6 Promise.all method, however non-IPromise objects are not allowed returns a future which is settled once all promises provided are settledsimilar to es6 Promise.all method, however non-IPromise objects are not allowed returns a future which is settled once all promises provided are settledsimilar all but map promises to their content returns a future which is settled once all promises provided are settledgeneric method for untyped remoting.generic method for untyped messages.IPromise.awaitPromise()similar to await but does not unwrap the promise.IPromise.awaitPromise(long timeout) schedule other events/messages until future is resolved/settled (Nonblocking delay).Promise.awaitPromise(long timeout) see IPromise (inheriting Callback) interface<OUT> IPromise<OUT>IPromise.catchError(Consumer<Object> function) called if an error has been signaled by one of the futures in the previous future chain.<OUT> IPromise<OUT>IPromise.catchError(Function<Object, IPromise<OUT>> function) called if an error has been signaled by one of the futures in the previous future chain.<OUT> IPromise<OUT>Promise.catchError(Consumer<Object> function) see IPromise (inheriting Callback) interface<OUT> IPromise<OUT>Promise.catchError(Function<Object, IPromise<OUT>> function) see IPromise (inheriting Callback) interfacestatic IPromiseActors.complete()abbreviation for Promise creation to make code more concisestatic <T> IPromise<T>abbreviation for Promise creation to make code more concise<T> IPromise<T>Actor.execInThreadPool(Callable<T> callable) execute a callable asynchronously (in a different thread) and return a future of the result (delivered in caller thread).Actor.getReport()Actor.getSubMonitorables()called when an error is set as the result forwards to (new) "catchError" variant.see IPromise (inheriting Callback) interfacecalled when a valid result of a future becomes available.see IPromise (inheriting Callback) interfacecalled when the async call times out. see 'timeOutIn'see IPromise (inheriting Callback) interfaceActor.ping()can be used to wait for all messages having been processed and get a signal from the returned future once this is completestatic <T> IPromise<T>Actors.race(Collection<IPromise<T>> futures) similar to es6 Promise.race method, however non-IPromise objects are not allowed returns a future which is settled once one of the futures provided gets settledstatic <T> IPromise<T>similar to es6 Promise.race method, however non-IPromise objects are not allowed returns a future which is settled once one of the futures provided gets settledstatic <T> IPromise<T>abbreviation for Promise creation to make code more concisestatic <T> IPromise<T>Actors.resolve()abbreviation for Promise creation to make code more concisestatic <T> IPromise<T>Actors.resolve(T res) abbreviation for Promise creation to make code more conciseActor.router$clientPing(long tim, long[] publishedActorIds) a krouter client should ping using this method.called once any result of a future becomes available Can be used in case a sender is not interested in the actual result but when a remote method has finished processing.<OUT> IPromise<OUT>called once any result of a future becomes available Can be used in case a sender is not interested in the actual result but when a remote method has finished processing.called once any result of a future becomes available Can be used in case a sender is not interested in the actual result but when a remote method has finished processing.see IPromise interface<OUT> IPromise<OUT>see IPromise (inheriting Callback) interfacesee IPromise (inheriting Callback) interface<OUT> IPromise<OUT>called once any result of a future becomes available Can be used in case a sender is not interested in the actual result but when a remote method has finished processing.called once any result of a future becomes available Can be used in case a sender is not interested in the actual result but when a remote method has finished processing.<OUT> IPromise<OUT>see IPromise (inheriting Callback) interfacesee IPromise (inheriting Callback) interfaceIPromise.timeoutIn(long millis) tellMsg the future to call the onTimeout callback in N milliseconds if future is not settled until thenPromise.timeoutIn(long millis) see IPromise (inheriting Callback) interfaceMethods in org.nustaq.kontraktor that return types with arguments of type IPromiseModifier and TypeMethodDescriptionsimilar to es6 Promise.all method, however non-IPromise objects are not allowed returns a future which is settled once all promises provided are settledMethods in org.nustaq.kontraktor with parameters of type IPromiseModifier and TypeMethodDescriptionsimilar to es6 Promise.all method, however non-IPromise objects are not allowed returns a future which is settled once all promises provided are settledstatic <T> Stream<T>await until all futures are settled and stream their resultsstatic <T> Stream<T>await until all futures are settled and stream their results.static <T> IPromise<T>similar to es6 Promise.race method, however non-IPromise objects are not allowed returns a future which is settled once one of the futures provided gets settledMethod parameters in org.nustaq.kontraktor with type arguments of type IPromiseModifier and TypeMethodDescriptionbooleanActor.__dispatchRemoteCall(ObjectSocket objSocket, RemoteCallEntry rce, ConnectionRegistry registry, List<IPromise> createdFutures, Object authContext, BiFunction<Actor, String, Boolean> callInterceptor, long delayCode) called if a message invokation from remote is receivedsimilar to es6 Promise.all method, however non-IPromise objects are not allowed returns a future which is settled once all promises provided are settledsimilar all but map promises to their content returns a future which is settled once all promises provided are settledstatic <T> Stream<T>static <T> Stream<T><OUT> IPromise<OUT>IPromise.catchError(Function<Object, IPromise<OUT>> function) called if an error has been signaled by one of the futures in the previous future chain.<OUT> IPromise<OUT>Promise.catchError(Function<Object, IPromise<OUT>> function) see IPromise (inheriting Callback) interfacestatic <T> IPromise<T>Actors.race(Collection<IPromise<T>> futures) similar to es6 Promise.race method, however non-IPromise objects are not allowed returns a future which is settled once one of the futures provided gets settledprotected voidenforce serial execution of asynchronous tasks.<OUT> IPromise<OUT>called once any result of a future becomes available Can be used in case a sender is not interested in the actual result but when a remote method has finished processing.called once any result of a future becomes available Can be used in case a sender is not interested in the actual result but when a remote method has finished processing.<OUT> IPromise<OUT>see IPromise (inheriting Callback) interfacesee IPromise (inheriting Callback) interface -
Uses of IPromise in org.nustaq.kontraktor.asyncio
Methods in org.nustaq.kontraktor.asyncio that return IPromiseModifier and TypeMethodDescription_AsyncClientSocket.connect(String host, int port, BiFunction<SelectionKey, SocketChannel, AsyncSocketConnection> connectionFactory) protected IPromiseAsyncSocketConnection.directWrite(ByteBuffer buf) AsyncFile.read(long position, int chunkSize, ByteBuffer target) AsyncFile.readFully()AsyncFile.write(long filePosition, ByteBuffer source) -
Uses of IPromise in org.nustaq.kontraktor.impl
Classes in org.nustaq.kontraktor.impl that implement IPromiseModifier and TypeClassDescriptionclassIf a promise or callback is wrapped by this, it will be treated correctly when remoted.Methods in org.nustaq.kontraktor.impl that return IPromiseModifier and TypeMethodDescriptionCallbackWrapper.awaitPromise(long timeout) <OUT> IPromise<OUT>CallbackWrapper.catchError(Consumer<Object> function) <OUT> IPromise<OUT>CallbackWrapper.catchError(Function<Object, IPromise<OUT>> function) CallEntry.getFutureCB()DispatcherThread.getReport()SimpleScheduler.getReport()DispatcherThread.getSubMonitorables()SimpleScheduler.getSubMonitorables()Warning: this will not be called on error or timeoutSimpleScheduler.put2QueuePolling(CallEntry e) Warning: this will not be called on error or timeout<OUT> IPromise<OUT>Warning: this will not be called on error or timeout<OUT> IPromise<OUT>CallbackWrapper.timeoutIn(long millis) Methods in org.nustaq.kontraktor.impl with parameters of type IPromiseMethod parameters in org.nustaq.kontraktor.impl with type arguments of type IPromise -
Uses of IPromise in org.nustaq.kontraktor.monitoring
Methods in org.nustaq.kontraktor.monitoring that return IPromise -
Uses of IPromise in org.nustaq.kontraktor.remoting
Methods in org.nustaq.kontraktor.remoting that return IPromise -
Uses of IPromise in org.nustaq.kontraktor.remoting.base
Methods in org.nustaq.kontraktor.remoting.base that return IPromiseModifier and TypeMethodDescriptionActorServer.close()ActorClientConnector.closeClient()ConnectionRegistry.closeNetwork()ActorServerConnector.closeServer()ActorClient.connect()ActorClient.connect(int qsiz) ActorClientConnector.connect(Function<ObjectSocket, ObjectSink> factory) ConnectableActor.connect()ConnectableActor.connect(Callback<ActorClientConnector> disconnectCallback) ConnectableActor.connect(Callback<ActorClientConnector> disconnectCallback, Consumer<Actor> actorDisconnecCB) LocalConnectable.connect(Callback<ActorClientConnector> disconnectCallback, Consumer<Actor> actorDisconnecCB) disconnect callback will never be called (local actor connection)default IPromise<ActorServer>ActorPublisher.publish()reanimate a remote ref of a resurrected facade connectionRemoteRefPolling.scheduleSendLoop(ConnectionRegistry reg) return a future which is completed upon connection closeMethod parameters in org.nustaq.kontraktor.remoting.base with type arguments of type IPromiseModifier and TypeMethodDescriptionprotected booleanConnectionRegistry.processRemoteCallEntry(ObjectSocket objSocket, RemoteCallEntry response, List<IPromise> createdFutures, Object authContext) booleanConnectionRegistry.receiveObject(ObjectSocket responseChannel, ObjectSink receiver, Object response, List<IPromise> createdFutures, Object authContext) process a remote call entry or an array of remote call entries.default voidObjectSink.receiveObject(Object received, List<IPromise> createdFutures, Object securityContext) voidObjectSink.receiveObject(ObjectSink sink, Object received, List<IPromise> createdFutures, Object securityContext) -
Uses of IPromise in org.nustaq.kontraktor.remoting.tcp
Methods in org.nustaq.kontraktor.remoting.tcp that return IPromiseModifier and TypeMethodDescriptionTCPClientConnector.closeClient()NIOServerConnector.closeServer()TCPServerConnector.closeServer()TCPClientConnector.connect(Function<ObjectSocket, ObjectSink> factory) TCPConnectable.connect(Callback<ActorClientConnector> disconnectCallback, Consumer<Actor> actorDisconnecCB) static IPromise<ActorServer> -
Uses of IPromise in org.nustaq.kontraktor.routers
Methods in org.nustaq.kontraktor.routers that return IPromiseModifier and TypeMethodDescriptionRouting.connectClient(ConnectableActor connectable, Consumer<Actor> disconnectCallback) Routing.registerService(ConnectableActor connectable, Actor service, Consumer<Actor> disconnectCallback, boolean stateful) publish and register a service at a remote KrouterAbstractKrouter.router$clientPing(long tim, long[] publishedActorIds) AbstractKrouter.router$RegisterService(Actor remoteRef, boolean stateful) HotHotFailoverKrouter.router$RegisterService(Actor remoteRef, boolean stateful) Krouter.router$RegisterService(Actor remoteRef, boolean stateful) SingleActiveServiceKrouter.router$RegisterService(Actor remoteRef, boolean stateful) Method parameters in org.nustaq.kontraktor.routers with type arguments of type IPromiseModifier and TypeMethodDescriptionbooleanAbstractKrouter.__dispatchRemoteCall(ObjectSocket objSocket, RemoteCallEntry rce, ConnectionRegistry clientRemoteRegistry, List<IPromise> createdFutures, Object authContext, BiFunction<Actor, String, Boolean> callInterceptor, long delayCode) -
Uses of IPromise in org.nustaq.kontraktor.util
Methods in org.nustaq.kontraktor.util that return IPromiseModifier and TypeMethodDescriptionPromiseLatch.getPromise()Hoarde.map(BiFunction<T, Integer, IPromise<X>> init) calls given function round robin. typical use: hoarde.ordered( actor -> actor.decode(byte[]) ).onResult( decodedObj -> businesslogic(decodedObj) ); afterMethods in org.nustaq.kontraktor.util that return types with arguments of type IPromiseMethod parameters in org.nustaq.kontraktor.util with type arguments of type IPromiseModifier and TypeMethodDescriptionHoarde.map(BiFunction<T, Integer, IPromise<X>> init) calls given function round robin. typical use: hoarde.ordered( actor -> actor.decode(byte[]) ).onResult( decodedObj -> businesslogic(decodedObj) ); afterConstructors in org.nustaq.kontraktor.util with parameters of type IPromiseModifierConstructorDescriptionPromiseLatch(int counter, IPromise<T> wrapped) PromiseLatch(IPromise<T> wrapped) PromiseLatch(IPromise<T> wrapped, int counter)