public class BootstrapRunnablesQueue extends Object implements RunnablesQueue
Constructor and Description |
---|
BootstrapRunnablesQueue() |
Modifier and Type | Method and Description |
---|---|
void |
clear()
Clears the current queue of runnables.
|
void |
offer(Runnable runnable)
Offer a runnable to be run on transaction commit.
|
void |
runAndClear()
Runs the runnable code currently in the queue and then clears the queue.
|
public void offer(Runnable runnable)
RunnablesQueue
offer
in interface RunnablesQueue
runnable
- the runnable in playpublic void clear()
RunnablesQueue
clear
in interface RunnablesQueue
public void runAndClear()
RunnablesQueue
runAndClear
in interface RunnablesQueue
Copyright © 2002-2019 Atlassian. All Rights Reserved.