Package java.util.concurrent.locks

Examples of java.util.concurrent.locks.Lock


  }

  @Override
  public long getNumOpenDbConns()
  {
    Lock readLock = acquireReadLock();
    try
    {
      return _event.numOpenDbConns;
    }
    finally
View Full Code Here


  }

  @Override
  public long getNumRowsUpdated()
  {
    Lock readLock = acquireReadLock();
    try
    {
      return _event.numRowsUpdated;
    }
    finally
View Full Code Here

  }

  @Override
  public long getTimeClosedDbConnLifeMs()
  {
    Lock readLock = acquireReadLock();
    try
    {
      return _event.timeClosedDbConnLifeMs;
    }
    finally
View Full Code Here

  }

  @Override
  public long getTimeOpenDbConnLifeMs()
  {
    Lock readLock = acquireReadLock();
    try
    {
      return _event.timeOpenDbConnLifeMs;
    }
    finally
View Full Code Here

  }

  @Override
  public long getTimestampLastDbConnCloseMs()
  {
    Lock readLock = acquireReadLock();
    try
    {
      return _event.timestampLastDbConnCloseMs;
    }
    finally
View Full Code Here

  }

  @Override
  public long getTimestampLastDbConnOpenMs()
  {
    Lock readLock = acquireReadLock();
    try
    {
      return _event.timestampLastDbConnOpenMs;
    }
    finally
View Full Code Here

  }

  @Override
  public long getTimeSinceLastResetMs()
  {
    Lock readLock = acquireReadLock();
    try
    {
      return _event.timeSinceLastResetMs;
    }
    finally
View Full Code Here

  }

  @Override
  public long getTimestampLastResetMs()
  {
    Lock readLock = acquireReadLock();
    try
    {
      return _event.timestampLastResetMs;
    }
    finally
View Full Code Here


  @Override
  public void registerDbConnClose(long timestamp, long lifespan)
  {
    Lock writeLock = acquireWriteLock();
    try
    {
      ++ _event.numClosedDbConns;
      -- _event.numOpenDbConns;
      _event.timeClosedDbConnLifeMs += lifespan;
View Full Code Here

  }

  @Override
  public void registerDbConnOpen(long timestamp)
  {
    Lock writeLock = acquireWriteLock();
    try
    {
      ++ _event.numOpenDbConns;
      _event.timestampLastDbConnOpenMs = Math.max(_event.timestampLastDbConnOpenMs, timestamp);
    }
View Full Code Here

TOP

Related Classes of java.util.concurrent.locks.Lock

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.