public interface RunningTask extends Identifiable, AutoCloseable
Modifier and Type | Method and Description |
---|---|
void |
close()
Signal the task to shut down.
|
void |
close(byte[] message)
Signal the task to shut down.
|
ActiveContext |
getActiveContext() |
TaskRepresenter |
getTaskRepresenter()
Gets the representer of task.
|
void |
send(byte[] message)
Sends the message to the running task.
|
void |
suspend()
Signal the task to suspend.
|
void |
suspend(byte[] message)
Signal the task to suspend.
|
getId
ActiveContext getActiveContext()
void send(byte[] message)
message
- to be sent to the running taskvoid suspend(byte[] message)
message
- a message that is sent to the Task.void suspend()
void close(byte[] message)
message
- a message that is sent to the Task.void close()
close
in interface AutoCloseable
TaskRepresenter getTaskRepresenter()
Copyright © 2017 The Apache Software Foundation. All rights reserved.