Initial commit of guarded suspension design pattern

This commit is contained in:
Robert Kasperczyk
2017-01-06 00:57:47 +01:00
parent cca4760f69
commit 764ff4bf53
8 changed files with 219 additions and 0 deletions

Binary file not shown.

After

Width:  |  Height:  |  Size: 7.8 KiB

View File

@ -0,0 +1,22 @@
<?xml version="1.0" encoding="UTF-8"?>
<class-diagram version="1.1.13" icons="true" automaticImage="JPEG" always-add-relationships="false"
generalizations="true" realizations="true" associations="true" dependencies="false" nesting-relationships="true"
router="FAN">
<class id="1" language="java" name="com.iluwatar.guarded.suspension.GuardedQueue"
project="java-design-patterns_guarded-suspension"
file="/java-design-patterns_guarded-suspension/src/main/java/com/iluwatar/guarded/suspension/GuardedQueue.java"
binary="false" corner="BOTTOM_RIGHT">
<position height="277" width="326" x="301" y="172"/>
<display autosize="false" stereotype="true" package="true" initial-value="false" signature="true"
sort-features="false" accessors="true" visibility="true">
<attributes public="true" package="true" protected="true" private="true" static="true"/>
<operations public="true" package="true" protected="true" private="true" static="true"/>
</display>
</class>
<classifier-display autosize="true" stereotype="true" package="true" initial-value="false" signature="true"
sort-features="false" accessors="true" visibility="true">
<attributes public="true" package="true" protected="true" private="true" static="true"/>
<operations public="true" package="true" protected="true" private="true" static="true"/>
</classifier-display>
<association-display labels="true" multiplicity="true"/>
</class-diagram>

View File

@ -0,0 +1,11 @@
@startuml
package com.iluwatar.guarded.suspension {
class GuardedQueue {
- LOGGER : Logger {static}
- sourceList : Queue<Integer>
+ GuardedQueue()
+ get() : Integer
+ put(e : Integer)
}
}
@enduml