diff options
Diffstat (limited to 'src/main/java')
-rw-r--r-- | src/main/java/org/onap/aai/spike/service/SpikeEventProcessor.java | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/main/java/org/onap/aai/spike/service/SpikeEventProcessor.java b/src/main/java/org/onap/aai/spike/service/SpikeEventProcessor.java index 88fa716..cd404b0 100644 --- a/src/main/java/org/onap/aai/spike/service/SpikeEventProcessor.java +++ b/src/main/java/org/onap/aai/spike/service/SpikeEventProcessor.java @@ -246,6 +246,8 @@ public class SpikeEventProcessor extends TimerTask { || eventQueue.size() > eventQueueCapacity)) { event = eventQueue.take(); } else { + // Small pause so that we aren't burning CPU + Thread.sleep(200); continue; } |