Package ubic.gemma.core.job.progress
Class ProgressUpdateAppender.ProgressUpdateContext
- java.lang.Object
-
- ubic.gemma.core.job.progress.ProgressUpdateAppender.ProgressUpdateContext
-
- All Implemented Interfaces:
AutoCloseable
- Enclosing class:
- ProgressUpdateAppender
public static class ProgressUpdateAppender.ProgressUpdateContext extends Object implements AutoCloseable
Represents a context under which progress update logs are intercepted theProgressUpdateAppender.ProgressUpdateCallback
is invoked.- Author:
- poirigui
-
-
Constructor Summary
Constructors Constructor Description ProgressUpdateContext(ProgressUpdateAppender.ProgressUpdateCallback progressUpdateCallback)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description void
close()
static ProgressUpdateAppender.ProgressUpdateContext
currentContext()
ProgressUpdateAppender.ProgressUpdateCallback
getProgressUpdateCallback()
-
-
-
Constructor Detail
-
ProgressUpdateContext
public ProgressUpdateContext(ProgressUpdateAppender.ProgressUpdateCallback progressUpdateCallback)
-
-
Method Detail
-
currentContext
public static ProgressUpdateAppender.ProgressUpdateContext currentContext()
-
getProgressUpdateCallback
public ProgressUpdateAppender.ProgressUpdateCallback getProgressUpdateCallback()
-
close
public void close()
- Specified by:
close
in interfaceAutoCloseable
-
-