Skip to content

Commit

Permalink
remove old naming from other places
Browse files Browse the repository at this point in the history
  • Loading branch information
himadieievsv committed Jan 22, 2024
1 parent 725f09d commit 5605a53
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ It is minimalistic, lightweight, and easy to use library written in Kotlin and c

- **[Mutex](./redpulsar-core/src/main/kotlin/com/himadieiev/redpulsar/core/locks/Mutex.kt)**: Distributed lock mechanism on a resource, that uses consensus of the majority of data storage nodes to determine if check obtained successfully.
- **[Semaphore](./redpulsar-core/src/main/kotlin/com/himadieiev/redpulsar/core/locks/Semaphore.kt)**: Distributed semaphore implementation allowing multiple number of lock on a resource. It also uses consensus of the majority of data storage nodes to determine if check obtained successfully.
- **[SimplifiedMutex](./redpulsar-core/src/main/kotlin/com/himadieiev/redpulsar/core/locks/SimplifiedMutex.kt)**: Simplified distributed lock mechanism on a resource. Unlike [RedLock](./redpulsar-core/src/main/kotlin/com/himadieiev/redpulsar/core/locks/Mutex.kt) it uses single data storage node.
- **[SimplifiedMutex](./redpulsar-core/src/main/kotlin/com/himadieiev/redpulsar/core/locks/SimplifiedMutex.kt)**: Simplified distributed lock mechanism on a resource. Unlike [Mutex](./redpulsar-core/src/main/kotlin/com/himadieiev/redpulsar/core/locks/Mutex.kt) it uses single data storage node.
- **[ListeningCountDownLatch](./redpulsar-core/src/main/kotlin/com/himadieiev/redpulsar/core/locks/ListeningCountDownLatch.kt)**: Implementation of distributed Count Down Latch, it uses that uses consensus of the majority of data storage instances ensuring count down consistency.
[ListeningCountDownLatch](./redpulsar-core/src/main/kotlin/com/himadieiev/redpulsar/core/locks/ListeningCountDownLatch.kt) utilized [Redis Pub/Sub](https://redis.io/topics/pubsub) mechanism to notify waiting workloads about count reaching zero.

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import java.time.Duration

class LockFactoryTest {
@Test
fun createSimpleLock() {
fun createSimplifiedMutex() {
assertThrows<IllegalArgumentException> {
LockFactory.createSimplifiedMutex(client = mockk(), retryDelay = Duration.ofSeconds(0))
}
Expand All @@ -17,7 +17,7 @@ class LockFactoryTest {
}

@Test
fun createRedLock() {
fun createMutex() {
assertThrows<IllegalArgumentException> {
LockFactory.createMutex(clients = listOf())
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import java.time.Duration

class LockFactoryTest {
@Test
fun createSimpleLock() {
fun createSimplifiedMutex() {
assertThrows<IllegalArgumentException> {
LockFactory.createSimplifiedMutex(client = mockk(), retryDelay = Duration.ofSeconds(0))
}
Expand All @@ -17,7 +17,7 @@ class LockFactoryTest {
}

@Test
fun createRedLock() {
fun createMutex() {
assertThrows<IllegalArgumentException> {
LockFactory.createMutex(clients = listOf())
}
Expand Down

0 comments on commit 5605a53

Please sign in to comment.