Package com.sun.sgs.impl.service.data.store

Examples of com.sun.sgs.impl.service.data.store.BindingValue


        entry, previousKey,
        previousKeyUnbound ? UNBOUND : UNKNOWN);
      }
      entry.setNotPendingPrevious(lock);
  }
  return new BindingValue(1, nextKey.getNameAllowLast());
    }
View Full Code Here


    logger.log(FINEST, "getBinding txn:{0}, name:{1}", txn, name);
      }
      Throwable exception;
      try {
    checkNull("name", name);
    BindingValue result = super.getBindingInternal(txn, name);
    if (logger.isLoggable(FINEST)) {
        logger.log(FINEST,
             "getBinding txn:{0}, name:{1} returns " +
             "oid:{2,number,#}",
             txn, name, result.getObjectId());
    }
    return result;
      } catch (RuntimeException e) {
    exception = e;
      } catch (Error e) {
View Full Code Here

        txn, name, oid);
      }
      Throwable exception;
      try {
    checkNull("name", name);
    BindingValue result = super.setBindingInternal(txn, name, oid);
    if (logger.isLoggable(FINEST)) {
        logger.log(FINEST,
             "setBinding txn:{0}, name:{1}," +
             " oid:{2,number,#} returns",
             txn, name, oid);
View Full Code Here

        FINEST, "removeBinding txn:{0}, name:{1}", txn, name);
      }
      Throwable exception;
      try {
    checkNull("name", name);
    BindingValue result = super.removeBindingInternal(txn, name);
    if (logger.isLoggable(FINEST)) {
        logger.log(FINEST,
             "removeBinding txn:{0}, name:{1} returns {2}",
             txn, name, result);
    }
View Full Code Here

    protected synchronized BindingValue getBindingInternal(
  Transaction txn, String name)
    {
  txn.join(this);
  if (names.containsKey(name)) {
      return new BindingValue(names.get(name), null);
  } else {
      return new BindingValue(-1, names.higherKey(name));
  }
    }
View Full Code Here

  Long oldValue = names.put(name, oid);
  List<Object> txnEntry = getTxnEntry(txn);
  txnEntry.add(name);
  txnEntry.add(oldValue);
  if (oldValue != null) {
      return new BindingValue(1, null);
  } else {
      return new BindingValue(-1, names.higherKey(name));
  }
    }
View Full Code Here

  Long oldValue = names.remove(name);
  if (oldValue != null) {
      List<Object> txnEntry = getTxnEntry(txn);
      txnEntry.add(name);
      txnEntry.add(oldValue);
      return new BindingValue(1, names.higherKey(name));
  } else {
      return new BindingValue(-1, names.higherKey(name));
  }
    }
View Full Code Here

TOP

Related Classes of com.sun.sgs.impl.service.data.store.BindingValue

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.