Uses of Class
kilim.Pausable
Packages that use Pausable
-
Uses of Pausable in kilim
Modifier and TypeMethodDescriptionPausable.apply(XX obj, Pausable.Psumer<XX, E1> func1, Pausable.Psumer<XX, E2> func2) Pausable.apply(XX obj, Pausable.Psumer<XX, E1> func1, Pausable.Psumer<XX, E2> func2, Pausable.Psumer<XX, E3> func3) static <XX,EE extends Throwable>
XXPausable.apply(XX obj, Pausable.Psumer<XX, EE> func) voidstatic <XX,EE extends Throwable>
XXPausable.applyAll(XX obj, Pausable.Psumer<XX, EE>... funcs) Pausable.chain(X1 obj, Pausable.Pfun<X1, X2, E1> function1, Pausable.Pfun<X2, X3, E2> function2, Pausable.Pfun<X3, X4, E3> function3) Pausable.chain(X1 obj, Pausable.Pfun<X1, X2, E1> function1, Pausable.Pfun<X2, ZZ, E2> function2) static <XX,YY, EE extends Throwable>
YYPausable.chain(XX obj, Pausable.Pfun<XX, YY, EE> function) static voidExit the task with a throwable indicating an error condition.voidContinuation.execute()the top level entrypoint for the continuation override this method cannot be called directly - use run() instead use Fiber.yield() to yield control cooperatively and return execution to the caller of run()voidFiber.Worker.execute()voidPausable.Fork.execute()voidPausable.Spawn.execute()voidTask.execute()voidTask.Fork.execute()voidTask.Invoke.execute()voidTask.Spawn.execute()voidTaskGroup.execute()static voidAnalogous to System.exit, except an Object can be used as the exit valuevoidPausable fill Pause the caller until at least one message is available.Cell.get()Cell.get(long timeoutMillis) Mailbox.get()Mailbox.get(long timeoutMillis) MailboxMPSC.get()MailboxMPSC.get(long timeoutMillis) MailboxSPSC.get()MailboxSPSC.get(long timeoutMillis) static TaskTask.getCurrentTask()This is a placeholder that doesn't do anything useful.ServletHandler.Iface.handle(javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse resp) static ObjectInvoke a pausable method via reflection.Task.join()TaskGroup.join()static voidFiber.pause()static voidTask.pause(PauseReason pauseReason) Ask the current task to pause with a reason object, that is responsible for resuming the task when the reason (for pausing) is not valid any more.voidReentrantLock.preLock()voidTask.prePin()voidbooleanvoidput a non-null message in the mailbox, and pause the calling task until the mailbox has spacebooleanput a non-null message in the mailbox, and pause the calling task for timeoutMillis if the mailbox is full.voidput a non-null message in the mailbox, and pause the calling task until the mailbox has spacebooleanput a non-null message in the mailbox, and pause the calling task for timeoutMillis if the mailbox is full.voidput a non-null message in the mailbox, and pause the calling task until the mailbox has spacevoidput a non-null messages from buffer in the mailbox, and pause the calling task until all the messages put in the mailboxbooleanput a non-null message in the mailbox, and pause the calling task for timeoutMillis if the mailbox is full.voidTask.resumeOnScheduler(Scheduler s) static intTakes an array of mailboxes and returns the index of the first mailbox that has a message.static voidTask.sleep(long millis) voidvoidMailbox.untilHasMessage()Block caller until at least one message is available.voidMailbox.untilHasMessages(int num) Block caller untilnummessages are available.static voidFiber.yield()yield cooperatively to the next task waiting to use the threadvoidstatic voidTask.yield()Yield cooperatively to the next task waiting to use the thread. -
Uses of Pausable in kilim.concurrent
Methods in kilim.concurrent that throw Pausable -
Uses of Pausable in kilim.examples
Methods in kilim.examples that throw PausableModifier and TypeMethodDescriptionstatic voidUserdata.Eats5.buff(int kfood) booleanHttpFileServer.check(HttpResponse resp, File file) voidTimerBlast.Tick.dive(int depth) voidTimerBlast2.Tick.dive(int depth) voidTimerBlast2.Tock.dive(int depth) static voidUserdata.eater(Userdata.Eats4 eat, int kfood) private voidSpawn.exampleUsage()voidChain.execute()voidEx.execute()The entry point.voidFib.execute()voidGroup.GroupTask.execute()voidHttpFileServer.execute()voidPerfTest.execute()voidPerfTest.Producer1.execute()voidPing.Server.execute()voidPost.execute()voidPre.execute()voidPure.PureDemo.execute()voidPure.PureMega.execute()voidPure.TaskDemo.execute()voidReflect.execute()voidSimpleHttpServer.SimpleHttpSession.execute()voidSimpleTask.execute()The entry point.voidSimpleTask2.execute()The entry point.voidTimedTask.execute()voidTimerBlast.execute()voidTimerBlast.Tick.execute()voidTimerBlast2.Tick.execute()voidTimerBlast2.Tock.execute()voidUserdata.execute()voidXorshift.X1.execute()voidXorshift.X2.execute()private voidEx.foo(int i) voidUserdata.Eats1.insert1(int kfood) voidUserdata.Eats1Impl.insert1(int kfood) voidUserdata.Eats2.insert1(int kfood) voidUserdata.Eats3.insert1(int kfood) voidUserdata.Eats4.insert1(int kfood) voidUserdata.Eats2.insert2(int kfood) voidHttpFileServer.problem(File file, HttpResponse resp, byte[] statusCode, String msg) voidHttpFileServer.sendDirectory(HttpResponse resp, File file, boolean headOnly) voidHttpFileServer.sendFile(HttpResponse resp, File file, boolean headOnly) static intReflect.static_test()intReflect.test()(package private) void(package private) void -
Uses of Pausable in kilim.http
Methods in kilim.http that throw PausableModifier and TypeMethodDescriptionKilimMvc.Fullable0.accept(HttpRequest req, HttpResponse resp) voidKilimMvc.Routeable0.accept()booleanHttpSession.check(HttpResponse resp, File file, String... bases) voidHttpSession.StringSession.execute()voidKilimMvc.Session.execute()voidvoidKilimMvc.KilimHandler.handle(KilimMvc.Session session, HttpRequest req, HttpResponse resp) voidKilimMvc.Session.handle(HttpRequest req, HttpResponse resp) voidHttpSession.problem(HttpResponse resp, byte[] statusCode, String htmlMsg) Send an error page to the client.voidHttpRequest.readAllChunks(EndPoint endpoint) voidvoidvoidHttpRequest.readHeader(EndPoint endpoint) intHttpSession.readRequest(HttpRequest req) Reads the socket, parses the HTTP headers and the body (including chunks) into the req object.HttpSession.StringRouter.route(HttpRequest req) (package private) ObjectKilimMvc.route(KilimMvc.Routeable hh, String[] keys) (package private) ObjectKilimMvc.route(KilimMvc.Router pp, KilimMvc.Session session, KilimMvc.Route r2, KilimMvc.Routeable hh, String[] keys, HttpRequest req, HttpResponse resp) KilimMvc.route(KilimMvc.Session session, HttpRequest req, HttpResponse resp) voidKilimMvc.Session.send(HttpResponse resp, byte[] msg, String type) intHttpSession.sendFile(HttpRequest req, HttpResponse resp, File file, String contentType) send a file with content length to the clientvoidHttpSession.sendResponse(HttpResponse resp) Send the response object in its entirety, and mark it for reuse.void -
Uses of Pausable in kilim.nio
Modifier and TypeMethodDescriptionvoidNioSelectorScheduler.ListenTask.execute()voidNioSelectorScheduler.RegistrationTask.execute()EndPoint.fill(ByteBuffer buf, int atleastN) ReadatleastNbytes more into the buffer if there's space.EndPoint.fillMessage(ByteBuffer bb, int lengthLength, boolean lengthIncludesItself) Reads a length-prefixed message in its entirety.voidEndPoint.pauseUntilAcceptable()voidEndPoint.pauseUntilReadable()voidEndPoint.pauseUntilWritable()voidEndPoint.write(ByteBuffer buf) Write buf.remaining() bytes to dataChannel().voidEndPoint.write(FileChannel fc, long start, long length) Write a file to the endpoint usingFileChannel.transferTo(long, long, java.nio.channels.WritableByteChannel) -
Uses of Pausable in kilim.support
Methods in kilim.support that throw PausableModifier and TypeMethodDescriptionJettyHandler.Iface.handle(String target, org.eclipse.jetty.server.Request br, javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse resp) JettyHandler.Java7Handler.handle(String arg0, org.eclipse.jetty.server.Request arg1, javax.servlet.http.HttpServletRequest arg2, javax.servlet.http.HttpServletResponse arg3, Fiber arg4)