Class DeadLockComponent
- java.lang.Object
-
- org.eclipse.persistence.internal.helper.type.DeadLockComponent
-
public class DeadLockComponent extends Object
-
-
Constructor Summary
Constructors Constructor Description DeadLockComponent(Thread threadNotAbleToAccessResource)
Constructor to be used when we start undoing our recursion due to having found a repeated thread that allows to conclude we have discovered our dead lock.DeadLockComponent(Thread threadNotAbleToAccessResource, boolean stuckOnReleaseDeferredLock, boolean stuckThreadAcquiringLockForWriting, boolean stuckThreadAcquiringLockForReading, ConcurrencyManager cacheKeyThreadWantsToAcquireButCannotGet, boolean deadLockPotentiallyCausedByCacheKeyWithCorruptedActiveThread, boolean deadLockPotentiallyCausedByCacheKeyWithCorruptedNumberOfReaders, DeadLockComponent nextThreadPartOfDeadLock)
Create a new DeadLockComponent.
-
Method Summary
-
-
-
Constructor Detail
-
DeadLockComponent
public DeadLockComponent(Thread threadNotAbleToAccessResource, boolean stuckOnReleaseDeferredLock, boolean stuckThreadAcquiringLockForWriting, boolean stuckThreadAcquiringLockForReading, ConcurrencyManager cacheKeyThreadWantsToAcquireButCannotGet, boolean deadLockPotentiallyCausedByCacheKeyWithCorruptedActiveThread, boolean deadLockPotentiallyCausedByCacheKeyWithCorruptedNumberOfReaders, DeadLockComponent nextThreadPartOfDeadLock)
Create a new DeadLockComponent.- Parameters:
threadNotAbleToAccessResource
-stuckOnReleaseDeferredLock
-stuckThreadAcquiringLockForWriting
-stuckThreadAcquiringLockForReading
-cacheKeyThreadWantsToAcquireButCannotGet
-deadLockPotentiallyCausedByCacheKeyWithCorruptedActiveThread
-deadLockPotentiallyCausedByCacheKeyWithCorruptedNumberOfReaders
-nextThreadPartOfDeadLock
-
-
DeadLockComponent
public DeadLockComponent(Thread threadNotAbleToAccessResource)
Constructor to be used when we start undoing our recursion due to having found a repeated thread that allows to conclude we have discovered our dead lock. When we do this, we will not populate any additionla data on the DTO. Create a new DeadLockComponent.- Parameters:
threadNotAbleToAccessResource
-
-
-
Method Detail
-
getThreadNotAbleToAccessResource
public Thread getThreadNotAbleToAccessResource()
Getter forthreadNotAbleToAccessResource
-
setThreadNotAbleToAccessResource
public void setThreadNotAbleToAccessResource(Thread threadNotAbleToAccessResource)
Setter forthreadNotAbleToAccessResource
-
isStuckOnReleaseDeferredLock
public boolean isStuckOnReleaseDeferredLock()
Getter forstuckOnReleaseDeferredLock
-
setStuckOnReleaseDeferredLock
public void setStuckOnReleaseDeferredLock(boolean stuckOnReleaseDeferredLock)
Setter forstuckOnReleaseDeferredLock
-
isStuckThreadAcquiringLockForWriting
public boolean isStuckThreadAcquiringLockForWriting()
Getter forstuckThreadAcquiringLockForWriting
-
setStuckThreadAcquiringLockForWriting
public void setStuckThreadAcquiringLockForWriting(boolean stuckThreadAcquiringLockForWriting)
Setter forstuckThreadAcquiringLockForWriting
-
isStuckThreadAcquiringLockForReading
public boolean isStuckThreadAcquiringLockForReading()
Getter forstuckThreadAcquiringLockForReading
-
setStuckThreadAcquiringLockForReading
public void setStuckThreadAcquiringLockForReading(boolean stuckThreadAcquiringLockForReading)
Setter forstuckThreadAcquiringLockForReading
-
getCacheKeyThreadWantsToAcquireButCannotGet
public ConcurrencyManager getCacheKeyThreadWantsToAcquireButCannotGet()
Getter forcacheKeyThreadWantsToAcquireButCannotGet
-
setCacheKeyThreadWantsToAcquireButCannotGet
public void setCacheKeyThreadWantsToAcquireButCannotGet(ConcurrencyManager cacheKeyThreadWantsToAcquireButCannotGet)
Setter forcacheKeyThreadWantsToAcquireButCannotGet
-
isDeadLockPotentiallyCausedByCacheKeyWithCorruptedActiveThread
public boolean isDeadLockPotentiallyCausedByCacheKeyWithCorruptedActiveThread()
-
setDeadLockPotentiallyCausedByCacheKeyWithCorruptedActiveThread
public void setDeadLockPotentiallyCausedByCacheKeyWithCorruptedActiveThread(boolean deadLockPotentiallyCausedByCacheKeyWithCorruptedActiveThread)
-
isDeadLockPotentiallyCausedByCacheKeyWithCorruptedNumberOfReaders
public boolean isDeadLockPotentiallyCausedByCacheKeyWithCorruptedNumberOfReaders()
-
setDeadLockPotentiallyCausedByCacheKeyWithCorruptedNumberOfReaders
public void setDeadLockPotentiallyCausedByCacheKeyWithCorruptedNumberOfReaders(boolean deadLockPotentiallyCausedByCacheKeyWithCorruptedNumberOfReaders)
-
getNextThreadPartOfDeadLock
public DeadLockComponent getNextThreadPartOfDeadLock()
Getter fornextThreadPartOfDeadLock
-
setNextThreadPartOfDeadLock
public void setNextThreadPartOfDeadLock(DeadLockComponent nextThreadPartOfDeadLock)
Setter fornextThreadPartOfDeadLock
-
isFirstRepeatingThreadThatExplainsDeadLock
public boolean isFirstRepeatingThreadThatExplainsDeadLock()
Getter forisFirstRepeatingThreadThatExplainsDeadLock
-
setFirstRepeatingThreadThatExplainsDeadLock
public void setFirstRepeatingThreadThatExplainsDeadLock(boolean isFirstRepeatingThreadThatExplainsDeadLock)
Setter forisFirstRepeatingThreadThatExplainsDeadLock
-
-