This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| apiVersion: v1 | |
| kind: Service | |
| metadata: | |
| creationTimestamp: null | |
| name: hello | |
| spec: | |
| ports: | |
| - port: 3000 | |
| protocol: TCP | |
| targetPort: 3000 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ec.lock(); | |
| try { | |
| // work with ec here | |
| } finally { | |
| ec.unlock(); | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /** | |
| * ERXEC factory that creates anonymous manual locking ec subclasses in an app where | |
| * safeLocking/autolocking is on by default. The returned ERXEC is | |
| * guaranteed to not autolock. | |
| */ | |
| private static ERXEC.Factory manualLockingEditingContextFactory = new ERXEC.DefaultFactory() { | |
| @Override | |
| protected EOEditingContext _createEditingContext(EOObjectStore parent) { | |
| return new ERXEC(parent == null ? EOEditingContext.defaultParentObjectStore() : parent) { |