use of org.jivesoftware.util.cache.ClusterTask in project Openfire by igniterealtime.
the class RemoteClientSession method incrementConflictCount.
public int incrementConflictCount() {
ClusterTask task = getRemoteSessionTask(RemoteSessionTask.Operation.incrementConflictCount);
Object result = doSynchronousClusterTask(task);
return result == null ? 0 : (Integer) result;
}
use of org.jivesoftware.util.cache.ClusterTask in project Openfire by igniterealtime.
the class RemoteIncomingServerSession method isUsingServerDialback.
public boolean isUsingServerDialback() {
if (usingServerDialback == -1) {
ClusterTask task = getRemoteSessionTask(RemoteSessionTask.Operation.isUsingServerDialback);
usingServerDialback = (Boolean) doSynchronousClusterTask(task) ? 1 : 0;
}
return usingServerDialback == 1;
}
use of org.jivesoftware.util.cache.ClusterTask in project Openfire by igniterealtime.
the class RemoteSession method getNumServerPackets.
public long getNumServerPackets() {
ClusterTask task = getRemoteSessionTask(RemoteSessionTask.Operation.getNumServerPackets);
final Object clusterTaskResult = doSynchronousClusterTask(task);
return clusterTaskResult == null ? -1 : (Long) clusterTaskResult;
}
use of org.jivesoftware.util.cache.ClusterTask in project Openfire by igniterealtime.
the class RemoteSession method isClosed.
public boolean isClosed() {
ClusterTask task = getRemoteSessionTask(RemoteSessionTask.Operation.isClosed);
final Object clusterTaskResult = doSynchronousClusterTask(task);
return clusterTaskResult == null ? false : (Boolean) clusterTaskResult;
}
use of org.jivesoftware.util.cache.ClusterTask in project Openfire by igniterealtime.
the class RemoteSession method getServerName.
public String getServerName() {
if (serverName == null) {
ClusterTask task = getRemoteSessionTask(RemoteSessionTask.Operation.getServerName);
serverName = (String) doSynchronousClusterTask(task);
}
return serverName;
}
Aggregations