本文整理匯總了Java中com.espertech.esper.client.annotation.NoLock類的典型用法代碼示例。如果您正苦於以下問題:Java NoLock類的具體用法?Java NoLock怎麽用?Java NoLock使用的例子?那麽, 這裏精選的類代碼示例或許可以為您提供幫助。
NoLock類屬於com.espertech.esper.client.annotation包,在下文中一共展示了NoLock類的2個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Java代碼示例。
示例1: getStatementLock
import com.espertech.esper.client.annotation.NoLock; //導入依賴的package包/類
public StatementAgentInstanceLock getStatementLock(String statementName, Annotation[] annotations, boolean stateless) {
boolean foundNoLock = AnnotationUtil.findAnnotation(annotations, NoLock.class) != null;
if (disableLocking || foundNoLock || stateless) {
return new StatementNoLockImpl(statementName);
}
return new StatementAgentInstanceRWLockImpl(fairlocks);
}
示例2: getStatementLock
import com.espertech.esper.client.annotation.NoLock; //導入依賴的package包/類
public StatementAgentInstanceLock getStatementLock(String statementName, String expressionText, Annotation[] annotations, boolean stateless)
{
boolean foundNoLock = AnnotationUtil.findAnnotation(annotations, NoLock.class) != null;
if (disableLocking || foundNoLock || stateless) {
return new StatementNoLockImpl(statementName);
}
return new StatementAgentInstanceRWLockImpl(statementName, fairlocks);
}