Commit b1fcad6a authored by csh's avatar csh

OF-758: Add support for XEP-0280 Message Carbons: fix in Hazelcast plugin

git-svn-id: http://svn.igniterealtime.org/svn/repos/openfire/trunk@14013 b35dd754-fafc-0310-a699-88a17e54d16e
parent 128395c9
...@@ -47,6 +47,8 @@ public class RemoteClientSession extends RemoteSession implements ClientSession ...@@ -47,6 +47,8 @@ public class RemoteClientSession extends RemoteSession implements ClientSession
private long initialized = -1; private long initialized = -1;
private boolean messageCarbonsEnabled;
public RemoteClientSession(byte[] nodeID, JID address) { public RemoteClientSession(byte[] nodeID, JID address) {
super(nodeID, address); super(nodeID, address);
} }
...@@ -154,6 +156,16 @@ public class RemoteClientSession extends RemoteSession implements ClientSession ...@@ -154,6 +156,16 @@ public class RemoteClientSession extends RemoteSession implements ClientSession
return result == null ? 0 : (Integer) result; return result == null ? 0 : (Integer) result;
} }
@Override
public boolean isMessageCarbonsEnabled() {
return messageCarbonsEnabled;
}
@Override
public void setMessageCarbonsEnabled(boolean enabled) {
this.messageCarbonsEnabled = enabled;
}
RemoteSessionTask getRemoteSessionTask(RemoteSessionTask.Operation operation) { RemoteSessionTask getRemoteSessionTask(RemoteSessionTask.Operation operation) {
return new ClientSessionTask(address, operation); return new ClientSessionTask(address, operation);
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment