Package org.apache.wicket.cluster.session.message

Examples of org.apache.wicket.cluster.session.message.SessionMessage


  public boolean accepts(Serializable message) {
    return message instanceof SessionMessage;
  }

  public void onProcessMessage(Serializable message, Member sender) {
    SessionMessage sessionMessage = (SessionMessage) message;
    SessionProvider provider = contextPathToSessionProvider
        .get(sessionMessage.getContextPath());
    if (provider == null) {
      log.error("Couldn't find session provider for context "
          + sessionMessage.getContextPath());
    } else {
      sessionMessage.execute(provider);
    }
  }
View Full Code Here


    }
    this.messageSender = messageSender;

    // make sure that the session expires at the same time on other nodes and that the session
    // is created on the nodes even if no attributes are set
    SessionMessage message = new SetMaxInactiveIntervalMessage(contextPath, getId(), getMaxInactiveInterval());
    messageSender.sendMessage(message);
  }
View Full Code Here

TOP

Related Classes of org.apache.wicket.cluster.session.message.SessionMessage

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.