public class ThreadSynchronizer extends Object
Constructor and Description |
---|
ThreadSynchronizer(boolean permanentBlock,
boolean verbose,
long timeout) |
Modifier and Type | Method and Description |
---|---|
boolean |
isBlockOwner(Thread thread) |
void |
releaseBlock() |
void |
releaseWaiting() |
boolean |
requestBlock(MessageStore store,
MessageObserver observer,
MessageHolder holder) |
public ThreadSynchronizer(boolean permanentBlock, boolean verbose, long timeout)
public boolean requestBlock(MessageStore store, MessageObserver observer, MessageHolder holder) throws InterruptedException
InterruptedException
public boolean isBlockOwner(Thread thread)
public void releaseWaiting()
public void releaseBlock()
Copyright © 2024. All rights reserved.