106 |
open.trip(); |
open.trip(); |
107 |
currentState = open; |
currentState = open; |
108 |
|
|
109 |
notifier.sendNotification(name, event); |
notifier.sendNotification(this, event); |
110 |
} |
} |
111 |
} |
} |
112 |
} |
} |
115 |
synchronized(this) { |
synchronized(this) { |
116 |
if (currentState != halfOpen) { // TODO:Is this conditional necessary ?? |
if (currentState != halfOpen) { // TODO:Is this conditional necessary ?? |
117 |
currentState = halfOpen; |
currentState = halfOpen; |
118 |
notifier.sendNotification(name, Notifier.Event.BreakerAttemptReset); |
notifier.sendNotification(this, Notifier.Event.BreakerAttemptReset); |
119 |
} |
} |
120 |
} |
} |
121 |
|
|
125 |
synchronized(this) { |
synchronized(this) { |
126 |
if (currentState != closed) { // TODO: Is this conditional necessary ?? |
if (currentState != closed) { // TODO: Is this conditional necessary ?? |
127 |
internalReset(); |
internalReset(); |
128 |
notifier.sendNotification(name, Notifier.Event.BreakerReset); |
notifier.sendNotification(this, Notifier.Event.BreakerReset); |
129 |
} |
} |
130 |
} |
} |
131 |
} |
} |