`

org.springframework.util.concurrent包类图分析Spring4.1.7版本

    博客分类:
  • Java
阅读更多
最近给Eclipse装了个UML插件,我装的是AmaterasUML,稍后在附件给出,但是不一定正确。不喜勿喷
这个插件可以方便的拖动JAVA文件,画出类图,这样方便分析JAVA类之间的关系


贴下包下面的类






下面一个一个分析

  • FailureCallback定义了onFailure方法,当失败回调时用来接收ListenableFuture的结果。
  • SuccessCallback定义了OnSuccess方法,当成功回调时用来接收ListenableFuture的结果。
  • ListenableFutureCallback继承FailureCallback和SuccessCallback,当回调时用来接收ListenableFuture的结果。
  • FutureAdapter抽象类,实现了java.util.concurrent.Future接口,适配Future参数化S给Future参数化T。所有的方法委托给受改造者(adaptee),get()和get(long,TimeUnit)将调用受改造者的结果。
  • ListenableFuture是一个接口,继承了java.util.concurrent.Future接口。如果回调注册了且future已经完成,这是回调方法就会触发。
  • ListenableFutureAdapter是一个抽象类,继承FutureAdapter,实现ListenableFuture接口,参考FutureAdapter。
  • ListenableFutureTask是一个类,继承了java.util.concurrent.FutureTask类,实现了ListenableFuture接口,里面的方法通过ListenableFutureCallbackRegistry来实现
  • SettableListenableFuture是一个类,实现了ListenableFuture接口。可以通过调用set(Object)和setException(Throwable)来设置一些属性,实际是内部静态类SettableTask实现java.util.concurrent.Callable接口来设置一些属性。ListenableFuture接口的两个方法通过ListenableFutureTask来实现
  • ListenableFutureCallbackRegistry是一个类,里面定义了回调的策略,具体实现是通过队列来实现



下面给出类图













  • 描述: 包下面class截图
  • 大小: 17.4 KB
  • 大小: 10.8 KB
  • 大小: 93 KB
分享到:
评论

相关推荐

    spring-web-2.5.jar

    org.springframework.web.util.HtmlCharacterEntityReferences.class org.springframework.web.util.HtmlUtils.class org.springframework.web.util.HttpSessionMutexListener.class org.springframework.web.util....

    org.springframework.web的jar包.zip

    import org.springframework.web.socket.server.standard.ServerEndpointExporter;

    Spring框架依赖jar包

    Spring框架依赖jar包,其中最小依赖包:org.springframework.core、org.springframework.context、org.springframework.beans、org.springframework.asm、org.springframework.expression、...

    org.apache.commons.net.util.jar

    org.apache.commons.net.util.jar

    spring4.0 API

    spring 4.0 未翻译java.lang....org.springframework.core.OrderComparator (implements java.util.Comparator) org.springframework.core.annotation.AnnotationAwareOrderComparator Annotation Type Hierarchy

    springboot 基础简易实例, maven项目

    <groupId>org.springframework.boot <artifactId>spring-boot-starter-parent <version>2.1.4.RELEASE <relativePath/> <!-- lookup parent from repository --> <groupId>com.example</groupId> ...

    axis2解决 org.apache.axis2.util.JavaUtils.callStackToString问题

    axis2解决 org.apache.axis2.util.JavaUtils.callStackToString问题

    spring jdbctemplate 封裝

    import org.springframework.jdbc.support.rowset.ResultSetWrappingSqlRowSet; import org.springframework.jdbc.support.rowset.SqlRowSet; import org.springframework.jdbc.support.rowset.SqlRowSetMetaData; ...

    org.apache.http jar包

    下载HttpClient,解压,在Eclipse中导入所有JAR import org.apache.http.HttpResponse; import org.apache.http.NameValuePair; import org.apache....import org.apache.http.util.EntityUtils;

    spring-framework-3.0.5.RELEASE-dependencies-1

    spring-framework-3.0.5.RELEASE-dependencies 好不容易找到了,赶紧分享一下 因为不能大于20M,共分了8个包,都是独立的,我列了目录,可以只下载需要的包,这是1号包: 1号包: edu.emory.mathcs.backport edu.oswego.cs....

    java并发工具包 java.util.concurrent中文版用户指南pdf

    1. java.util.concurrent - Java 并发工具包 2. 阻塞队列 BlockingQueue 3. 数组阻塞队列 ArrayBlockingQueue 4. 延迟队列 DelayQueue 5. 链阻塞队列 LinkedBlockingQueue 6. 具有优先级的阻塞队列 ...

    atlassian-util-concurrent-0.0.12.jar.zip

    标签:atlassian-util-concurrent-0.0.12.jar.zip,atlassian,util,concurrent,0.0.12,jar.zip包下载,依赖包

    axis2.jar 解决 org.apache.axis2.util.JavaUtils.callStackToString问题

    <Call Stack = DEBUG_FRAME = org.apache.axis2.util.JavaUtils.callStackToString(JavaUtils.java:564) DEBUG_FRAME = org.apache.axis2.description.ParameterIncludeImpl.debugParameterAdd(ParameterIncludeImpl...

    org.apache.poi jar包

    org.apache.poi JAR包,解决个人的 import org.apache.commons.beanutils.PropertyUtilsBean; import org.apache.commons.lang.StringUtils; import org.apache.poi.hssf.usermodel.HSSFCell; import org.apache.poi...

    spring-framework.jar包

    最全的一份spring的jar包,让你在学习spring的时候不用花时间再去找包

    spring-framework-3.0.5.RELEASE-dependencies-6

    spring-framework-3.0.5.RELEASE-dependencies 好不容易找到了,赶紧分享一下 因为不能大于20M,共分了8个包,都是独立的,我列了目录, 可以只下载需要的包,这是6号包: 1号包: edu.emory.mathcs.backport edu.oswego....

    spring-framework-3.0.5.RELEASE-dependencies-7

    spring-framework-3.0.5.RELEASE-dependencies 好不容易找到了,赶紧分享一下 因为不能大于20M,共分了8个包,都是独立的,我列了目录, 可以只下载需要的包,这是7号包: 1号包: edu.emory.mathcs.backport edu.oswego....

    spring-framework-3.0.5.RELEASE-dependencies-5

    spring-framework-3.0.5.RELEASE-dependencies 好不容易找到了,赶紧分享一下 因为不能大于20M,共分了8个包,都是独立的,我列了目录, 可以只下载需要的包,这是5号包: 1号包: edu.emory.mathcs.backport edu.oswego....

    spring2.5基于注解例子程序

    spring2.5基于注解的例子程序,包含相关jar包

    spring-framework-3.0.5.RELEASE-dependencies-8

    spring-framework-3.0.5.RELEASE-dependencies 好不容易找到了,赶紧分享一下 因为不能大于20M,共分了8个包,都是独立的,我列了目录, 可以只下载需要的包,这是8号包: 1号包: edu.emory.mathcs.backport edu.oswego.cs...

Global site tag (gtag.js) - Google Analytics