Skip to content

Commit

Permalink
IGNITE-8926 : Javadocs.
Browse files Browse the repository at this point in the history
  • Loading branch information
ilantukh authored and mcherkasov committed Aug 9, 2018
1 parent 16794a4 commit e444e8b
Showing 1 changed file with 9 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -160,17 +160,26 @@ public void compositeRwLockIndex(int compositeRwLockIdx) {
this.compositeRwLockIdx = compositeRwLockIdx;
}

/**
* @return {@code True} if thread is currently executing entry processor.
*/
public boolean executingEntryProcessor() {
return executingEntryProcessor;
}

/**
* Callback before entry processor execution is started.
*/
public static void onEntryProcessorEntered() {
Thread curThread = Thread.currentThread();

if (curThread instanceof IgniteThread)
((IgniteThread)curThread).executingEntryProcessor = true;
}

/**
* Callback after entry processor execution is finished.
*/
public static void onEntryProcessorLeft() {
Thread curThread = Thread.currentThread();

Expand Down

0 comments on commit e444e8b

Please sign in to comment.