Search in sources :

Example 16 with ClusterTask

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;
}
Also used : ClusterTask(org.jivesoftware.util.cache.ClusterTask)

Example 17 with ClusterTask

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;
}
Also used : ClusterTask(org.jivesoftware.util.cache.ClusterTask)

Example 18 with ClusterTask

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;
}
Also used : ClusterTask(org.jivesoftware.util.cache.ClusterTask)

Example 19 with ClusterTask

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;
}
Also used : ClusterTask(org.jivesoftware.util.cache.ClusterTask)

Example 20 with ClusterTask

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;
}
Also used : ClusterTask(org.jivesoftware.util.cache.ClusterTask)

Aggregations

ClusterTask (org.jivesoftware.util.cache.ClusterTask)21 Presence (org.xmpp.packet.Presence)2