Module org.eclipse.persistence.core
Class DeadLockComponent
java.lang.Object
org.eclipse.persistence.internal.helper.type.DeadLockComponent
-
Constructor Summary
ConstructorsConstructorDescriptionDeadLockComponent(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
Modifier and TypeMethodDescriptionGetter forcacheKeyThreadWantsToAcquireButCannotGetGetter fornextThreadPartOfDeadLockGetter forthreadNotAbleToAccessResourcebooleanGetter fordeadLockPotentiallyCausedByCacheKeyWithCorruptedActiveThreadbooleanGetter fordeadLockPotentiallyCausedByCacheKeyWithCorruptedNumberOfReadersbooleanGetter forisFirstRepeatingThreadThatExplainsDeadLockbooleanGetter forstuckOnReleaseDeferredLockbooleanGetter forstuckThreadAcquiringLockForReadingbooleanGetter forstuckThreadAcquiringLockForWritingvoidsetCacheKeyThreadWantsToAcquireButCannotGet(ConcurrencyManager cacheKeyThreadWantsToAcquireButCannotGet) Setter forcacheKeyThreadWantsToAcquireButCannotGetvoidsetDeadLockPotentiallyCausedByCacheKeyWithCorruptedActiveThread(boolean deadLockPotentiallyCausedByCacheKeyWithCorruptedActiveThread) Setter fordeadLockPotentiallyCausedByCacheKeyWithCorruptedActiveThreadvoidsetDeadLockPotentiallyCausedByCacheKeyWithCorruptedNumberOfReaders(boolean deadLockPotentiallyCausedByCacheKeyWithCorruptedNumberOfReaders) Setter fordeadLockPotentiallyCausedByCacheKeyWithCorruptedNumberOfReadersvoidsetFirstRepeatingThreadThatExplainsDeadLock(boolean isFirstRepeatingThreadThatExplainsDeadLock) Setter forisFirstRepeatingThreadThatExplainsDeadLockvoidsetNextThreadPartOfDeadLock(DeadLockComponent nextThreadPartOfDeadLock) Setter fornextThreadPartOfDeadLockvoidsetStuckOnReleaseDeferredLock(boolean stuckOnReleaseDeferredLock) Setter forstuckOnReleaseDeferredLockvoidsetStuckThreadAcquiringLockForReading(boolean stuckThreadAcquiringLockForReading) Setter forstuckThreadAcquiringLockForReadingvoidsetStuckThreadAcquiringLockForWriting(boolean stuckThreadAcquiringLockForWriting) Setter forstuckThreadAcquiringLockForWritingvoidsetThreadNotAbleToAccessResource(Thread threadNotAbleToAccessResource) Setter forthreadNotAbleToAccessResourcetoString()
-
Constructor Details
-
DeadLockComponent
public DeadLockComponent(Thread threadNotAbleToAccessResource, boolean stuckOnReleaseDeferredLock, boolean stuckThreadAcquiringLockForWriting, boolean stuckThreadAcquiringLockForReading, ConcurrencyManager cacheKeyThreadWantsToAcquireButCannotGet, boolean deadLockPotentiallyCausedByCacheKeyWithCorruptedActiveThread, boolean deadLockPotentiallyCausedByCacheKeyWithCorruptedNumberOfReaders, DeadLockComponent nextThreadPartOfDeadLock) Create a new DeadLockComponent. -
DeadLockComponent
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.
-
-
Method Details
-
getThreadNotAbleToAccessResource
Getter forthreadNotAbleToAccessResource -
setThreadNotAbleToAccessResource
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
Getter forcacheKeyThreadWantsToAcquireButCannotGet -
setCacheKeyThreadWantsToAcquireButCannotGet
public void setCacheKeyThreadWantsToAcquireButCannotGet(ConcurrencyManager cacheKeyThreadWantsToAcquireButCannotGet) Setter forcacheKeyThreadWantsToAcquireButCannotGet -
isDeadLockPotentiallyCausedByCacheKeyWithCorruptedActiveThread
public boolean isDeadLockPotentiallyCausedByCacheKeyWithCorruptedActiveThread()Getter fordeadLockPotentiallyCausedByCacheKeyWithCorruptedActiveThread -
setDeadLockPotentiallyCausedByCacheKeyWithCorruptedActiveThread
public void setDeadLockPotentiallyCausedByCacheKeyWithCorruptedActiveThread(boolean deadLockPotentiallyCausedByCacheKeyWithCorruptedActiveThread) Setter fordeadLockPotentiallyCausedByCacheKeyWithCorruptedActiveThread -
isDeadLockPotentiallyCausedByCacheKeyWithCorruptedNumberOfReaders
public boolean isDeadLockPotentiallyCausedByCacheKeyWithCorruptedNumberOfReaders()Getter fordeadLockPotentiallyCausedByCacheKeyWithCorruptedNumberOfReaders -
setDeadLockPotentiallyCausedByCacheKeyWithCorruptedNumberOfReaders
public void setDeadLockPotentiallyCausedByCacheKeyWithCorruptedNumberOfReaders(boolean deadLockPotentiallyCausedByCacheKeyWithCorruptedNumberOfReaders) Setter fordeadLockPotentiallyCausedByCacheKeyWithCorruptedNumberOfReaders -
getNextThreadPartOfDeadLock
Getter fornextThreadPartOfDeadLock -
setNextThreadPartOfDeadLock
Setter fornextThreadPartOfDeadLock -
isFirstRepeatingThreadThatExplainsDeadLock
public boolean isFirstRepeatingThreadThatExplainsDeadLock()Getter forisFirstRepeatingThreadThatExplainsDeadLock -
setFirstRepeatingThreadThatExplainsDeadLock
public void setFirstRepeatingThreadThatExplainsDeadLock(boolean isFirstRepeatingThreadThatExplainsDeadLock) Setter forisFirstRepeatingThreadThatExplainsDeadLock -
toString
-