mirror of
https://github.com/tiennm99/java-design-patterns.git
synced 2026-10-12 16:15:23 +00:00
#108 Consistent package naming throughout the examples
This commit is contained in:
1 parent
af92d8dde5
commit
3d488ec15a
128 files changed
+963
-873
No files matched your search
+1
-1
@@ -1,4 +1,4 @@
|
||||
package com.iluwatar.poisonpill;
|
||||
package com.iluwatar.poison.pill;
|
||||
|
||||
/**
|
||||
* One of possible approaches to terminate Producer-Consumer pattern is using PoisonPill idiom.
|
||||
+2
-2
@@ -1,6 +1,6 @@
|
||||
package com.iluwatar.poisonpill;
|
||||
package com.iluwatar.poison.pill;
|
||||
|
||||
import com.iluwatar.poisonpill.Message.Headers;
|
||||
import com.iluwatar.poison.pill.Message.Headers;
|
||||
|
||||
/**
|
||||
* Class responsible for receiving and handling submitted to the queue messages
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
package com.iluwatar.poisonpill;
|
||||
package com.iluwatar.poison.pill;
|
||||
|
||||
/**
|
||||
* Endpoint to publish {@link Message} to queue
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
package com.iluwatar.poisonpill;
|
||||
package com.iluwatar.poison.pill;
|
||||
|
||||
/**
|
||||
* Endpoint to retrieve {@link Message} from queue
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
package com.iluwatar.poisonpill;
|
||||
package com.iluwatar.poison.pill;
|
||||
|
||||
import java.util.Map;
|
||||
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
package com.iluwatar.poisonpill;
|
||||
package com.iluwatar.poison.pill;
|
||||
|
||||
/**
|
||||
* Represents abstraction of channel (or pipe) that bounds {@link Producer} and {@link Consumer}
|
||||
+2
-2
@@ -1,8 +1,8 @@
|
||||
package com.iluwatar.poisonpill;
|
||||
package com.iluwatar.poison.pill;
|
||||
|
||||
import java.util.Date;
|
||||
|
||||
import com.iluwatar.poisonpill.Message.Headers;
|
||||
import com.iluwatar.poison.pill.Message.Headers;
|
||||
|
||||
/**
|
||||
* Class responsible for producing unit of work that can be expressed as message and submitted to queue
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
package com.iluwatar.poisonpill;
|
||||
package com.iluwatar.poison.pill;
|
||||
|
||||
import java.util.Collections;
|
||||
import java.util.HashMap;
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
package com.iluwatar.poisonpill;
|
||||
package com.iluwatar.poison.pill;
|
||||
|
||||
import java.util.concurrent.ArrayBlockingQueue;
|
||||
import java.util.concurrent.BlockingQueue;
|
||||
+2
-2
@@ -1,8 +1,8 @@
|
||||
package com.iluwatar.poisonpill;
|
||||
package com.iluwatar.poison.pill;
|
||||
|
||||
import org.junit.Test;
|
||||
|
||||
import com.iluwatar.poisonpill.App;
|
||||
import com.iluwatar.poison.pill.App;
|
||||
|
||||
public class AppTest {
|
||||
|
||||
Reference in new issue
Block a user