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 forcacheKeyThreadWantsToAcquireButCannotGet
Getter fornextThreadPartOfDeadLock
Getter forthreadNotAbleToAccessResource
boolean
Getter fordeadLockPotentiallyCausedByCacheKeyWithCorruptedActiveThread
boolean
Getter fordeadLockPotentiallyCausedByCacheKeyWithCorruptedNumberOfReaders
boolean
Getter forisFirstRepeatingThreadThatExplainsDeadLock
boolean
Getter forstuckOnReleaseDeferredLock
boolean
Getter forstuckThreadAcquiringLockForReading
boolean
Getter forstuckThreadAcquiringLockForWriting
void
setCacheKeyThreadWantsToAcquireButCannotGet
(ConcurrencyManager cacheKeyThreadWantsToAcquireButCannotGet) Setter forcacheKeyThreadWantsToAcquireButCannotGet
void
setDeadLockPotentiallyCausedByCacheKeyWithCorruptedActiveThread
(boolean deadLockPotentiallyCausedByCacheKeyWithCorruptedActiveThread) Setter fordeadLockPotentiallyCausedByCacheKeyWithCorruptedActiveThread
void
setDeadLockPotentiallyCausedByCacheKeyWithCorruptedNumberOfReaders
(boolean deadLockPotentiallyCausedByCacheKeyWithCorruptedNumberOfReaders) Setter fordeadLockPotentiallyCausedByCacheKeyWithCorruptedNumberOfReaders
void
setFirstRepeatingThreadThatExplainsDeadLock
(boolean isFirstRepeatingThreadThatExplainsDeadLock) Setter forisFirstRepeatingThreadThatExplainsDeadLock
void
setNextThreadPartOfDeadLock
(DeadLockComponent nextThreadPartOfDeadLock) Setter fornextThreadPartOfDeadLock
void
setStuckOnReleaseDeferredLock
(boolean stuckOnReleaseDeferredLock) Setter forstuckOnReleaseDeferredLock
void
setStuckThreadAcquiringLockForReading
(boolean stuckThreadAcquiringLockForReading) Setter forstuckThreadAcquiringLockForReading
void
setStuckThreadAcquiringLockForWriting
(boolean stuckThreadAcquiringLockForWriting) Setter forstuckThreadAcquiringLockForWriting
void
setThreadNotAbleToAccessResource
(Thread threadNotAbleToAccessResource) Setter forthreadNotAbleToAccessResource
toString()
-
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
-