Package io.trino.execution.buffer
Class OutputBufferStateMachine
- java.lang.Object
-
- io.trino.execution.buffer.OutputBufferStateMachine
-
public class OutputBufferStateMachine extends Object
-
-
Constructor Summary
Constructors Constructor Description OutputBufferStateMachine(TaskId taskId, Executor executor)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanabort()voidaddStateChangeListener(StateMachine.StateChangeListener<BufferState> stateChangeListener)booleanfail(Throwable throwable)booleanfinish()Optional<Throwable>getFailureCause()BufferStategetState()booleannoMoreBuffers()booleannoMorePages()
-
-
-
Method Detail
-
getState
public BufferState getState()
-
addStateChangeListener
public void addStateChangeListener(StateMachine.StateChangeListener<BufferState> stateChangeListener)
-
noMoreBuffers
public boolean noMoreBuffers()
-
noMorePages
public boolean noMorePages()
-
finish
public boolean finish()
-
abort
public boolean abort()
-
fail
public boolean fail(Throwable throwable)
-
-