All Projects β†’ DWorkS β†’ Volleyplus

DWorkS / Volleyplus

🏐 Volley library : make everything faster . Its an improvements for Volley by Google for Android https://android.googlesource.com/platform/frameworks/volley

Programming Languages

java
68154 projects - #9 most used programming language

Projects that are alternatives of or similar to Volleyplus

Libzmq
ZeroMQ core engine in C++, implements ZMTP/3.1
Stars: ✭ 7,418 (+652.33%)
Mutual labels:  networking
Verwalter
A tool which manages cluster of services
Stars: ✭ 34 (-96.55%)
Mutual labels:  networking
Xdp
Package xdp allows one to use XDP sockets from the Go programming language.
Stars: ✭ 36 (-96.35%)
Mutual labels:  networking
Workshops
Training Course for Ansible Automation Platform
Stars: ✭ 951 (-3.55%)
Mutual labels:  networking
Network Programming
Small Projects on Socket Programming, Website Scanning, Wireless & Network Security
Stars: ✭ 33 (-96.65%)
Mutual labels:  networking
Androidnetworktools
Set of useful android network tools
Stars: ✭ 978 (-0.81%)
Mutual labels:  networking
Chill Netcat
UDP-only netcat implementation with OCaml / MirageOS
Stars: ✭ 13 (-98.68%)
Mutual labels:  networking
Openwisp Monitoring
Network monitoring system written in Python and Django, designed to be extensible, programmable, scalable and easy to use by end users: once the system is configured, monitoring checks, alerts and metric collection happens automatically.
Stars: ✭ 37 (-96.25%)
Mutual labels:  networking
Awesome Scalability Toolbox
My opinionated list of products and tools used for high-scalability projects
Stars: ✭ 34 (-96.55%)
Mutual labels:  networking
Xmnetworking
A lightweight but powerful network library with simplified and expressive syntax based on AFNetworking.
Stars: ✭ 980 (-0.61%)
Mutual labels:  networking
Asyncio
asyncio historical repository
Stars: ✭ 952 (-3.45%)
Mutual labels:  networking
Carrot
πŸ₯• Build multi-device AR applications
Stars: ✭ 32 (-96.75%)
Mutual labels:  networking
Multipath Sdn Controller
πŸŽ› Multipath Software Defined Networking Controller which sets up multipath forwarding tables and adjusts them based on network measurements
Stars: ✭ 35 (-96.45%)
Mutual labels:  networking
Netsniff Ng
A Swiss army knife for your daily Linux network plumbing.
Stars: ✭ 915 (-7.2%)
Mutual labels:  networking
Bond Cni
Bond-cni is for fail-over and high availability of networking in cloudnative orchestration
Stars: ✭ 36 (-96.35%)
Mutual labels:  networking
Bash Toolkit
Este proyecto esΓ‘ destinado a ayudar a los sysadmin
Stars: ✭ 13 (-98.68%)
Mutual labels:  networking
Miniupnp
UPnP IGD implementation
Stars: ✭ 974 (-1.22%)
Mutual labels:  networking
Clusteredbigcache
golang bigcache with clustering as a library.
Stars: ✭ 37 (-96.25%)
Mutual labels:  networking
Sst Elements
SST Architectural Simulation Components and Libraries
Stars: ✭ 36 (-96.35%)
Mutual labels:  networking
Anette
Simple haxe network library
Stars: ✭ 35 (-96.45%)
Mutual labels:  networking

VolleyPlus

Buy Me A Coffee

VolleyPlus

VolleyPlus library Project improvements to Volley along with full image caching.It involves using RequestQueue, RequestTickle and Request.

  • RequestQueue - Dispatch Queue which takes a Request and executes in a worker thread or if cache found its takes from cache and responds back to the UI main thread.
  • RequestTickle - A single class which takes a Request and executes in same thread or if cache found its takes from cache and responds back to the same thread. Mainly useful in sync operations where you want to perform operations sequentially.
  • Request - All network(HTTP) requests are created from this class. It takes main parameters required for a HTTP request like
    • METHOD Type - GET, POST, PUT, DELETE, HEAD, OPTIONS, TRACE, PATCH
    • URL
    • Headers
    • Parameters
    • Retry Policy
    • Request Priority (RequestQueue)
    • Request data (HTTP Body)
    • Request Cancellation
    • Response Caching
    • Successful Response Listener
    • Error Listener
    • Progress Listener (for few Request types)

VolleyPlus Provides variety of implementations of Request.

  • StringRequest
  • JsonRequest
  • JsonObjectRequest
  • JsonArrayRequest
  • GsonRequest
  • GZipRequest
  • MultiPartRequest/SimpleMultiPartRequest
    SimpleMultipartRequest request = new SimpleMultipartRequest(Method.POST, apiUrl, mListener, mErrorListener);
    request.addFile("photo", imagePath);
    request.addMultipartParam("body", "text/plain", "some text");

    RequestQueue mRequestQueue = Volley.newRequestQueue(getApplicationContext());
    mRequestQueue.add(request);
    mRequestQueue.start();
  • DownloadRequest
  • ImageRequest

VolleyPlus has also very powerful image caching SimpleImageLoder.

  • DiskLruBasedCache based on DiskLruCache for Level2 (L2) cache
  • Supports NewtworkImageView usage with SimpleImageLoader
  • Can also update the cache
  • Provides option to flush, close and clear the cache in both L1 and L2 cache
  • Supported types of Image Caching
    • Network Caching
    • Resource Caching
    • File Caching
    • Video Caching
    • Content URI Caching

Usage

RequestQueue

RequestQueue mRequestQueue = Volley.newRequestQueue(getApplicationContext());

StringRequest stringRequest = new StringRequest(Request.Method.GET, url, new Response.Listener<String>() {
    @Override
    public void onResponse(String response) {
    	....
    }
}, new Response.ErrorListener() {
    @Override
    public void onErrorResponse(VolleyError error) {
    	....
    }
});

mRequestQueue.add(stringRequest);

RequestTickle

RequestTickle mRequestTickle = VolleyTickle.newRequestTickle(getApplicationContext());

StringRequest stringRequest = new StringRequest(Request.Method.GET, url, null, null);
mRequestTickle.add(stringRequest);
NetworkResponse response = mRequestTickle.start();

if (response.statusCode == 200) {
	String data = VolleyTickle.parseResponse(response);
	....
}
else{
	....
}

SimpleImageLoader

ImageCacheParams cacheParams = new ImageCacheParams(getApplicationContext(), "CacheDirectory");
cacheParams.setMemCacheSizePercent(0.5f);

SimpleImageLoader mImageFetcher = new SimpleImageLoader(getApplicationContext(), R.drawable.holder_image, cacheParams);
mImageFetcher.setMaxImageSize(300);
....

mImageFetcher.get(url, image_view);

OR

network_image_view.setImageUrl(url, mImageFetcher);
network_image_view.setDefaultImageResId(R.drawable.holder_image);

Quick Start

Volley is available as an AAR, so you just need to add the following dependency to your build.gradle.

buildscript {
    repositories {
        jcenter()
    }
}
...

dependencies {
     compile 'dev.dworks.libs:volleyplus:+'
}
...

Sample App

Get it on Google Play

Developed By

License

Copyright 2017 Hari Krishna Dulipudi
Copyright (C) 2011 The Android Open Source Project

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

   http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].