return recipientId.hashCode();
}
}
+
+class RenewSessionAction implements HandleAction {
+
+ private final RecipientId recipientId;
+
+ public RenewSessionAction(final RecipientId recipientId) {
+ this.recipientId = recipientId;
+ }
+
+ @Override
+ public void execute(Manager m) throws Throwable {
+ m.renewSession(recipientId);
+ }
+
+ @Override
+ public boolean equals(final Object o) {
+ if (this == o) return true;
+ if (o == null || getClass() != o.getClass()) return false;
+
+ final RenewSessionAction that = (RenewSessionAction) o;
+
+ return recipientId.equals(that.recipientId);
+ }
+
+ @Override
+ public int hashCode() {
+ return recipientId.hashCode();
+ }
+}