Examples of SerializableObject


Examples of org.jasig.portal.utils.SerializableObject

    public void setUserLockCache(Ehcache userLockCache) {
        this.userLockCache = new SelfPopulatingCache(userLockCache, new CacheEntryFactory() {

            @Override
            public Object createEntry(Object key) throws Exception {
                return new SerializableObject();
            }
        });
    }
View Full Code Here

Examples of org.jasig.portal.utils.SerializableObject

    /**
     * Get a session scoped mutex specific to this class
     */
    protected final Object getEventSessionMutex(HttpSession session) {
        synchronized (WebUtils.getSessionMutex(session)) {
            SerializableObject mutex = (SerializableObject)session.getAttribute(EVENT_SESSION_MUTEX);
            if (mutex == null) {
                mutex = new SerializableObject();
                session.setAttribute(EVENT_SESSION_MUTEX, mutex);
            }
           
            return mutex;
        }
View Full Code Here

Examples of org.jasig.portal.utils.SerializableObject

    /* (non-Javadoc)
     * @see javax.servlet.ServletRequestListener#requestInitialized(javax.servlet.ServletRequestEvent)
     */
    @Override
    public void requestInitialized(ServletRequestEvent sre) {
        sre.getServletRequest().setAttribute(PortalWebUtils.REQUEST_MUTEX_ATTRIBUTE, new SerializableObject());
    }
View Full Code Here

Examples of railo.commons.lang.SerializableObject

  public int doStartTag() throws PageException  {
    return EVAL_BODY_BUFFERED;
  }
 
  private void _execute() throws Exception   {
      Object monitor=new SerializableObject();
     
      String command="";
      if(name==null) {
        if(StringUtil.isEmpty(body)) {
          required("execute", "name", name);
          required("execute", "arguments", arguments);
        }
        else command=body;
      }
      else {
        if(arguments==null)command=name;
        else command=name+arguments;
      }


      _Execute execute=new _Execute(pageContext, monitor, command, outputfile, variable, errorFile, errorVariable);
     
      //if(timeout<=0)execute._run();
      //else {
      execute.start();
      if(timeout>0){
        try {
              synchronized(monitor) {
                monitor.wait(timeout);
              }
          }
        finally {
          execute.abort(terminateOnTimeout);
          }
View Full Code Here

Examples of railo.commons.lang.SerializableObject

        else if(type==TYPE_SYNCmap=new SyncMap<Collection.Key, Object>(new HashMapPro<Collection.Key,Object>());
        else             map=new SyncMap<Collection.Key,Object>();
      */
      if(type==TYPE_LINKED)    map=new SyncMap<Collection.Key, Object>(new LinkedHashMapPro<Collection.Key,Object>(initialCapacity));
      else if(type==TYPE_WEAKEDmap=new SyncMap<Collection.Key, Object>(new WeakHashMapPro<Collection.Key,Object>(initialCapacity));
      else if(type==TYPE_SOFTmap=new SyncMap<Collection.Key, Object>(new MapProWrapper<Collection.Key, Object>(new ReferenceMap(ReferenceMap.HARD,ReferenceMap.SOFT,initialCapacity,0.75f),new SerializableObject()));
        //else if(type==TYPE_SYNC)  map=new ConcurrentHashMapPro<Collection.Key,Object>);
        else             map=MapFactory.getConcurrentMap(initialCapacity);//new ConcurrentHashMapPro<Collection.Key,Object>();
    }
View Full Code Here

Examples of railo.commons.lang.SerializableObject

          MailException me = new MailException(e.getMessage());
          me.setStackTrace(e.getStackTrace());
          throw me;
        }
        try {
                SerializableObject lock = new SerializableObject();
                SMTPSender sender=new SMTPSender(lock,msgSess,server.getHostName(),server.getPort(),_username,_password);
                sender.start();
                SystemUtil.wait(lock, _timeout);
               
                if(!sender.hasSended()) {
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.