Package railo.runtime.cache.eh.remote.soap

Examples of railo.runtime.cache.eh.remote.soap.Element


  public void put(String key, Object value, Long idleTime, Long liveTime) {
    Boolean eternal = idleTime==null && liveTime==null?Boolean.TRUE:Boolean.FALSE;
    Integer idle = idleTime==null?null:new Integer((int)idleTime.longValue()/1000);
    Integer live = liveTime==null?null:new Integer((int)liveTime.longValue()/1000);
    try {
      Element el = new Element();
      el.setKey(key);
      // TODO make text/plain for string
      el.setMimeType("application/x-java-serialized-object");
      el.setValue(Converter.toBytes(value));
      el.setEternal(eternal);
      el.setTimeToIdleSeconds(idle);
      el.setTimeToLiveSeconds(live);
   
      soap.put(name,el);
    } catch (Throwable t) {
      throw new RuntimeException(t);
    }
View Full Code Here

TOP

Related Classes of railo.runtime.cache.eh.remote.soap.Element

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.