You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@hc.apache.org by "Michael Osipov (Jira)" <ji...@apache.org> on 2019/12/31 14:32:00 UTC
[jira] [Assigned] (HTTPCORE-620) Refactor int constants from
org.apache.hc.core5.reactor.IOSession into an enum
[ https://issues.apache.org/jira/browse/HTTPCORE-620?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Michael Osipov reassigned HTTPCORE-620:
---------------------------------------
Assignee: Gary D. Gregory
> Refactor int constants from org.apache.hc.core5.reactor.IOSession into an enum
> ------------------------------------------------------------------------------
>
> Key: HTTPCORE-620
> URL: https://issues.apache.org/jira/browse/HTTPCORE-620
> Project: HttpComponents HttpCore
> Issue Type: Improvement
> Components: HttpCore
> Reporter: Gary D. Gregory
> Assignee: Gary D. Gregory
> Priority: Major
> Fix For: 5.0-beta11
>
> Time Spent: 10m
> Remaining Estimate: 0h
>
> Refactor int constants fromĀ {{org.apache.hc.core5.reactor.IOSession}} into an enum called state:
> * {color:#500050}int org.apache.hc.core5.reactor.IO{color}{color:#500050}Session.ACTIVE{color}
> * {color:#500050}int org.apache.hc.core5.reactor.IO{color}{color:#500050}Session.CLOSED{color}
> * {color:#500050}int org.apache.hc.core5.reactor.IO{color}{color:#500050}Session.CLOSING{color}
> Like:
> {code:java}
> public interface IOSession extends ByteChannel, SocketModalCloseable, Identifiable {
> public enum Status {
> ACTIVE(0),
> CLOSING(1),
> CLOSED(Integer.MAX_VALUE);
> private Status(final int rank) {
> this.rank = rank;
> }
> public final int rank;
> }
> ...
> {code}
> https://github.com/apache/httpcomponents-core/pull/180
--
This message was sent by Atlassian Jira
(v8.3.4#803005)
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@hc.apache.org
For additional commands, e-mail: dev-help@hc.apache.org